net: propagate tc filter chain index down the ndo_setup_tc call
We need to push the chain index down to the drivers, so they have the information to which chain the rule belongs. For now, no driver supports multichain offload, so only chain 0 is supported. This is needed to prevent chain squashes during offload for now. Later this will be used to implement multichain offload. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
50dffe7fad
commit
a5fcf8a6c9
@@ -9200,11 +9200,14 @@ free_jump:
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __ixgbe_setup_tc(struct net_device *dev, u32 handle, __be16 proto,
|
||||
struct tc_to_netdev *tc)
|
||||
static int __ixgbe_setup_tc(struct net_device *dev, u32 handle, u32 chain_index,
|
||||
__be16 proto, struct tc_to_netdev *tc)
|
||||
{
|
||||
struct ixgbe_adapter *adapter = netdev_priv(dev);
|
||||
|
||||
if (chain_index)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (TC_H_MAJ(handle) == TC_H_MAJ(TC_H_INGRESS) &&
|
||||
tc->type == TC_SETUP_CLSU32) {
|
||||
switch (tc->cls_u32->command) {
|
||||
|
Reference in New Issue
Block a user