Commit e41e2824 authored by Hariprasad Shenai's avatar Hariprasad Shenai Committed by David S. Miller

cxgb4: Use symbolic constant for VLAN priority calculation

Signed-off-by: default avatarHariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 301c141d
...@@ -66,7 +66,7 @@ struct l2t_data { ...@@ -66,7 +66,7 @@ struct l2t_data {
static inline unsigned int vlan_prio(const struct l2t_entry *e) 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) static inline void l2t_hold(struct l2t_data *d, struct l2t_entry *e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment