Skip to content

Commit 8d210d5

Browse files
Sunil Gouthamdavem330
authored andcommitted
net: thunderx: Fix for HW TSO not enabled for secondary qsets
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6a9bab7 commit 8d210d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/cavium/thunder/nicvf_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,9 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
15371537

15381538
nicvf_send_vf_struct(nic);
15391539

1540+
if (!pass1_silicon(nic->pdev))
1541+
nic->hw_tso = true;
1542+
15401543
/* Check if this VF is in QS only mode */
15411544
if (nic->sqs_mode)
15421545
return 0;
@@ -1556,9 +1559,6 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
15561559

15571560
netdev->vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;
15581561

1559-
if (!pass1_silicon(nic->pdev))
1560-
nic->hw_tso = true;
1561-
15621562
netdev->netdev_ops = &nicvf_netdev_ops;
15631563
netdev->watchdog_timeo = NICVF_TX_TIMEOUT;
15641564

0 commit comments

Comments
 (0)