cxgb4: Use symbolic constant for VLAN priority calculation
authorHariprasad Shenai <hariprasad@chelsio.com>
Thu, 17 Dec 2015 08:15:07 +0000 (13:45 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Dec 2015 20:51:04 +0000 (15:51 -0500)
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/l2t.c

index ac27898..7234b82 100644 (file)
@@ -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)