]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ad1f7a4e41f216c0c3ff8f02f7313a0b6c99b5e
tree58a2208c1b403db5309020117e984a8c3c12fd12
parent1df86b60f89c1e06c5e045756fc8cc98686907df
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