cregit-Linux how code gets into the kernel

Release 4.18 tools/testing/selftests/bpf/test_xdp_redirect.c

/* Copyright (c) 2017 VMware
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 */
#include <linux/bpf.h>
#include "bpf_helpers.h"

int _version SEC("version") = 1;

SEC("redirect_to_111")

int xdp_redirect_to_111(struct xdp_md *xdp) { return bpf_redirect(111, 0); }

Contributors

PersonTokensPropCommitsCommitProp
William Tu18100.00%1100.00%
Total18100.00%1100.00%

SEC("redirect_to_222")
int xdp_redirect_to_222(struct xdp_md *xdp) { return bpf_redirect(222, 0); }

Contributors

PersonTokensPropCommitsCommitProp
William Tu18100.00%1100.00%
Total18100.00%1100.00%

char _license[] SEC("license") = "GPL";

Overall Contributors

PersonTokensPropCommitsCommitProp
William Tu70100.00%1100.00%
Total70100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.