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 ac27898c6ab0b249ad6ced9308b55cd40f883ece..7234b82eb83316e96df98942295e7e48971fb526 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)