net: sched: push cls related args into cls_common structure
As ndo_setup_tc is generic offload op for whole tc subsystem, does not really make sense to have cls-specific args. So move them under cls_common structurure which is embedded in all cls structs. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
74897ef0a5
commit
5fd9fc4e20
@@ -4285,7 +4285,6 @@ int bnx2x_setup_tc(struct net_device *dev, u8 num_tc)
|
||||
}
|
||||
|
||||
int __bnx2x_setup_tc(struct net_device *dev, enum tc_setup_type type,
|
||||
u32 handle, u32 chain_index, __be16 proto,
|
||||
struct tc_to_netdev *tc)
|
||||
{
|
||||
if (type != TC_SETUP_MQPRIO)
|
||||
|
@@ -487,7 +487,6 @@ netdev_tx_t bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
/* setup_tc callback */
|
||||
int bnx2x_setup_tc(struct net_device *dev, u8 num_tc);
|
||||
int __bnx2x_setup_tc(struct net_device *dev, enum tc_setup_type type,
|
||||
u32 handle, u32 chain_index, __be16 proto,
|
||||
struct tc_to_netdev *tc);
|
||||
|
||||
int bnx2x_get_vf_config(struct net_device *dev, int vf,
|
||||
|
@@ -7238,7 +7238,6 @@ int bnxt_setup_mq_tc(struct net_device *dev, u8 tc)
|
||||
}
|
||||
|
||||
static int bnxt_setup_tc(struct net_device *dev, enum tc_setup_type type,
|
||||
u32 handle, u32 chain_index, __be16 proto,
|
||||
struct tc_to_netdev *ntc)
|
||||
{
|
||||
if (type != TC_SETUP_MQPRIO)
|
||||
|
Reference in New Issue
Block a user