bpf, dst: add and use dst_tclassid helper
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 16 Mar 2016 00:42:50 +0000 (01:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2016 23:38:46 +0000 (19:38 -0400)
commit808c1b697c3c4dd2a7132882424c390b0d0acfb9
treec43c9d8bd383b1c6063110c26c1ff495a37b5827
parent09c37a2c5bbc28b5fbc07a01db4bccdbd0a5d8a2
bpf, dst: add and use dst_tclassid helper

We can just add a small helper dst_tclassid() for retrieving the
dst->tclassid value. It makes the code a bit better in that we can
get rid of the ifdef from filter.c by moving this into the header.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h
net/core/filter.c