summaryrefslogtreecommitdiff
path: root/include/linux/filter.h
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@plumgrid.com>2014-07-31 07:34:13 +0400
committerDavid S. Miller <davem@davemloft.net>2014-08-03 02:02:38 +0400
commit009937e78a45553a86d26654f192b2fd9ebe289d (patch)
treee51182b31749cecad8f1a0749969c79815aeefe7 /include/linux/filter.h
parent278571baca2aecf5fb5cb5c8b002dbfa0a6c524c (diff)
downloadlinux-009937e78a45553a86d26654f192b2fd9ebe289d.tar.xz
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.h3
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);