Skip to content

Commit

Permalink
net: thunderx: Fix for HW TSO not enabled for secondary qsets
Browse files Browse the repository at this point in the history
For secondary Qsets 'hw_tso' is not getting set as probe() returns
much earlier. Fixed it by moving silicon revision check.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sunil Goutham authored and David S. Miller committed Feb 18, 2016
1 parent 6a9bab7 commit 8d210d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ethernet/cavium/thunder/nicvf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1537,6 +1537,9 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)

nicvf_send_vf_struct(nic);

if (!pass1_silicon(nic->pdev))
nic->hw_tso = true;

/* Check if this VF is in QS only mode */
if (nic->sqs_mode)
return 0;
Expand All @@ -1556,9 +1559,6 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)

netdev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;

if (!pass1_silicon(nic->pdev))
nic->hw_tso = true;

netdev->netdev_ops = &nicvf_netdev_ops;
netdev->watchdog_timeo = NICVF_TX_TIMEOUT;

Expand Down

0 comments on commit 8d210d5

Please sign in to comment.