Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Merge conflict of mlx5 resolved using instructions in merge
commit 9566e650bf
.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -13,12 +13,6 @@ struct ocelot_port_block {
|
||||
struct ocelot_port *port;
|
||||
};
|
||||
|
||||
static u16 get_prio(u32 prio)
|
||||
{
|
||||
/* prio starts from 0x1000 while the ids starts from 0 */
|
||||
return prio >> 16;
|
||||
}
|
||||
|
||||
static int ocelot_flower_parse_action(struct flow_cls_offload *f,
|
||||
struct ocelot_ace_rule *rule)
|
||||
{
|
||||
@@ -168,7 +162,7 @@ static int ocelot_flower_parse(struct flow_cls_offload *f,
|
||||
}
|
||||
|
||||
finished_key_parsing:
|
||||
ocelot_rule->prio = get_prio(f->common.prio);
|
||||
ocelot_rule->prio = f->common.prio;
|
||||
ocelot_rule->id = f->cookie;
|
||||
return ocelot_flower_parse_action(f, ocelot_rule);
|
||||
}
|
||||
@@ -218,7 +212,7 @@ static int ocelot_flower_destroy(struct flow_cls_offload *f,
|
||||
struct ocelot_ace_rule rule;
|
||||
int ret;
|
||||
|
||||
rule.prio = get_prio(f->common.prio);
|
||||
rule.prio = f->common.prio;
|
||||
rule.port = port_block->port;
|
||||
rule.id = f->cookie;
|
||||
|
||||
@@ -236,7 +230,7 @@ static int ocelot_flower_stats_update(struct flow_cls_offload *f,
|
||||
struct ocelot_ace_rule rule;
|
||||
int ret;
|
||||
|
||||
rule.prio = get_prio(f->common.prio);
|
||||
rule.prio = f->common.prio;
|
||||
rule.port = port_block->port;
|
||||
rule.id = f->cookie;
|
||||
ret = ocelot_ace_rule_stats_update(&rule);
|
||||
|
Reference in New Issue
Block a user