diff options
author | Ganesh Goudar <ganeshgr@chelsio.com> | 2018-09-14 14:05:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-14 17:50:23 +0200 |
commit | c3ec8bcceb07ab81e4ff017b4ebbacc137a5a15e (patch) | |
tree | dfe4bcbb9b2866dd7cd75b064bd95ca51ace3f9c /drivers/net/ethernet/chelsio/cxgb4/l2t.c | |
parent | cxgb4: add per rx-queue counter for packet errors (diff) | |
download | linux-c3ec8bcceb07ab81e4ff017b4ebbacc137a5a15e.tar.xz linux-c3ec8bcceb07ab81e4ff017b4ebbacc137a5a15e.zip |
cxgb4: update supported DCB version
- In CXGB4_DCB_STATE_FW_INCOMPLETE state check if the dcb
version is changed and update the dcb supported version.
- Also, fill the priority code point value for priority
based flow control.
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/l2t.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.c b/drivers/net/ethernet/chelsio/cxgb4/l2t.c index 301c4df8a566..99022c0898b5 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/l2t.c +++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.c @@ -433,10 +433,12 @@ struct l2t_entry *cxgb4_l2t_get(struct l2t_data *d, struct neighbour *neigh, else lport = netdev2pinfo(physdev)->lport; - if (is_vlan_dev(neigh->dev)) + if (is_vlan_dev(neigh->dev)) { vlan = vlan_dev_vlan_id(neigh->dev); - else + vlan |= vlan_dev_get_egress_qos_mask(neigh->dev, priority); + } else { vlan = VLAN_NONE; + } write_lock_bh(&d->lock); for (e = d->l2tab[hash].first; e; e = e->next) |