diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-12-17 13:45:07 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-17 15:51:04 -0500 |
commit | e41e282428ee897b8817049e6ee0b7d5c9caf005 (patch) | |
tree | ac2c447c2f3276510fe27cbf49219ad1a01b45e8 | |
parent | 301c141d6a5ddacb8b2310a87a7e8fe997d17a39 (diff) |
cxgb4: Use symbolic constant for VLAN priority calculation
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/l2t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.c b/drivers/net/ethernet/chelsio/cxgb4/l2t.c index ac27898c6ab0..7234b82eb833 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/l2t.c +++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.c @@ -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) |