Skip to content

Commit

Permalink
cxgb4: Use symbolic constant for VLAN priority calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hariprasad Shenai authored and David S. Miller committed Dec 17, 2015
1 parent 301c141 commit e41e282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/chelsio/cxgb4/l2t.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct l2t_data {

static inline unsigned int vlan_prio(const struct l2t_entry *e)
{
return e->vlan >> 13;
return e->vlan >> VLAN_PRIO_SHIFT;
}

static inline void l2t_hold(struct l2t_data *d, struct l2t_entry *e)
Expand Down

0 comments on commit e41e282

Please sign in to comment.