mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
net: sched: make type an argument for ndo_setup_tc
Since the type is always present, push it to be a separate argument to ndo_setup_tc. On the way, name the type enum and use it for arg type. 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:
parent
1afec92be0
commit
2572ac53c4
32 changed files with 125 additions and 113 deletions
|
@ -863,8 +863,8 @@ static void dsa_slave_del_cls_matchall(struct net_device *dev,
|
|||
kfree(mall_tc_entry);
|
||||
}
|
||||
|
||||
static int dsa_slave_setup_tc(struct net_device *dev, u32 handle,
|
||||
u32 chain_index, __be16 protocol,
|
||||
static int dsa_slave_setup_tc(struct net_device *dev, enum tc_setup_type type,
|
||||
u32 handle, u32 chain_index, __be16 protocol,
|
||||
struct tc_to_netdev *tc)
|
||||
{
|
||||
bool ingress = TC_H_MAJ(handle) == TC_H_MAJ(TC_H_INGRESS);
|
||||
|
@ -872,7 +872,7 @@ static int dsa_slave_setup_tc(struct net_device *dev, u32 handle,
|
|||
if (chain_index)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
switch (tc->type) {
|
||||
switch (type) {
|
||||
case TC_SETUP_MATCHALL:
|
||||
switch (tc->cls_mall->command) {
|
||||
case TC_CLSMATCHALL_REPLACE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue