mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 10:26:42 +07:00
ec0595cc44
After the previous patch, struct tc_action should be enough to represent the generic tc action, tcf_common is not necessary any more. This patch gets rid of it to make tc action code more readable. Cc: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
29 lines
663 B
C
29 lines
663 B
C
/*
|
|
* Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __NET_TC_BPF_H
|
|
#define __NET_TC_BPF_H
|
|
|
|
#include <linux/filter.h>
|
|
#include <net/act_api.h>
|
|
|
|
struct tcf_bpf {
|
|
struct tc_action common;
|
|
struct bpf_prog __rcu *filter;
|
|
union {
|
|
u32 bpf_fd;
|
|
u16 bpf_num_ops;
|
|
};
|
|
struct sock_filter *bpf_ops;
|
|
const char *bpf_name;
|
|
};
|
|
#define to_bpf(a) ((struct tcf_bpf *)a)
|
|
|
|
#endif /* __NET_TC_BPF_H */
|