diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-07-31 05:34:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-03 00:02:38 +0200 |
commit | 009937e78a45553a86d26654f192b2fd9ebe289d (patch) | |
tree | e51182b31749cecad8f1a0749969c79815aeefe7 /include | |
parent | net: filter: simplify socket charging (diff) | |
download | linux-009937e78a45553a86d26654f192b2fd9ebe289d.tar.xz 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')
-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); |