net: cls_u32: move TC offload feature bit into cls_u32 offload logic
authorJohn Fastabend <john.fastabend@gmail.com>
Fri, 26 Feb 2016 15:54:13 +0000 (07:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 21:05:39 +0000 (16:05 -0500)
commit2b6ab0d3aae6bf1e08118060b0c5565778cd6b21
tree58a2208c1b403db5309020117e984a8c3c12fd12
parent6843e7a2abe7cac10c19702ffec90018df6f040d
net: cls_u32: move TC offload feature bit into cls_u32 offload logic

In the original series drivers would get offload requests for cls_u32
rules even if the feature bit is disabled. This meant the driver had
to do a boiler plate check on the feature bit before adding/deleting
the rule.

This patch lifts the check into the core code and removes it from the
driver specific case.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
include/net/pkt_cls.h