diff options
author | Sunil Goutham <sgoutham@cavium.com> | 2016-11-24 12:18:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-26 04:21:17 +0300 |
commit | 430da208089ba74ff3d2992d80387c8ea5cabd0e (patch) | |
tree | 191f83ab5927f5c99b7f2189c3da284934740510 /drivers/net/ethernet/cavium/thunder/nicvf_main.c | |
parent | d5b2d7a7184062c436f9a2b237e77bdb8e06a936 (diff) | |
download | linux-430da208089ba74ff3d2992d80387c8ea5cabd0e.tar.xz |
net: thunderx: Pause frame support
Enable pause frames on both Rx and Tx side, configure pause
interval e.t.c. Also support for enable/disable pause frames
on Rx/Tx via ethtool has been added.
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder/nicvf_main.c')
-rw-r--r-- | drivers/net/ethernet/cavium/thunder/nicvf_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_main.c b/drivers/net/ethernet/cavium/thunder/nicvf_main.c index c6c23033e6eb..1eacec85dac3 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_main.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_main.c @@ -256,6 +256,12 @@ static void nicvf_handle_mbx_intr(struct nicvf *nic) nic->pnicvf = (struct nicvf *)mbx.nicvf.nicvf; nic->pf_acked = true; break; + case NIC_MBOX_MSG_PFC: + nic->pfc.autoneg = mbx.pfc.autoneg; + nic->pfc.fc_rx = mbx.pfc.fc_rx; + nic->pfc.fc_tx = mbx.pfc.fc_tx; + nic->pf_acked = true; + break; default: netdev_err(nic->netdev, "Invalid message from PF, msg 0x%x\n", mbx.msg.msg); |