diff options
author | 2014-07-30 20:34:13 -0700 | |
---|---|---|
committer | 2014-08-02 15:02:38 -0700 | |
commit | 009937e78a45553a86d26654f192b2fd9ebe289d (patch) | |
tree | e51182b31749cecad8f1a0749969c79815aeefe7 /include/linux/filter.h | |
parent | net: filter: simplify socket charging (diff) | |
download | linux-009937e78a45553a86d26654f192b2fd9ebe289d.tar.gz linux-009937e78a45553a86d26654f192b2fd9ebe289d.tar.bz2 linux-009937e78a45553a86d26654f192b2fd9ebe289d.zip |
net: filter: rename sk_filter_proglen -> bpf_classic_proglen
trivial rename to better match semantics of macro
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/filter.h')
-rw-r--r-- | include/linux/filter.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 00640edc166f..3769341a745d 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -344,8 +344,7 @@ static inline unsigned int sk_filter_size(unsigned int proglen) offsetof(struct sk_filter, insns[proglen])); } -#define sk_filter_proglen(fprog) \ - (fprog->len * sizeof(fprog->filter[0])) +#define bpf_classic_proglen(fprog) (fprog->len * sizeof(fprog->filter[0])) int sk_filter(struct sock *sk, struct sk_buff *skb); |