@@ -574,8 +574,7 @@ static inline void nicvf_set_rxhash(struct net_device *netdev,
574
574
575
575
static void nicvf_rcv_pkt_handler (struct net_device * netdev ,
576
576
struct napi_struct * napi ,
577
- struct cmp_queue * cq ,
578
- struct cqe_rx_t * cqe_rx , int cqe_type )
577
+ struct cqe_rx_t * cqe_rx )
579
578
{
580
579
struct sk_buff * skb ;
581
580
struct nicvf * nic = netdev_priv (netdev );
@@ -591,7 +590,7 @@ static void nicvf_rcv_pkt_handler(struct net_device *netdev,
591
590
}
592
591
593
592
/* Check for errors */
594
- err = nicvf_check_cqe_rx_errs (nic , cq , cqe_rx );
593
+ err = nicvf_check_cqe_rx_errs (nic , cqe_rx );
595
594
if (err && !cqe_rx -> rb_cnt )
596
595
return ;
597
596
@@ -682,8 +681,7 @@ static int nicvf_cq_intr_handler(struct net_device *netdev, u8 cq_idx,
682
681
cq_idx , cq_desc -> cqe_type );
683
682
switch (cq_desc -> cqe_type ) {
684
683
case CQE_TYPE_RX :
685
- nicvf_rcv_pkt_handler (netdev , napi , cq ,
686
- cq_desc , CQE_TYPE_RX );
684
+ nicvf_rcv_pkt_handler (netdev , napi , cq_desc );
687
685
work_done ++ ;
688
686
break ;
689
687
case CQE_TYPE_SEND :
@@ -1125,7 +1123,6 @@ int nicvf_stop(struct net_device *netdev)
1125
1123
1126
1124
/* Clear multiqset info */
1127
1125
nic -> pnicvf = nic ;
1128
- nic -> sqs_count = 0 ;
1129
1126
1130
1127
return 0 ;
1131
1128
}
@@ -1354,6 +1351,9 @@ void nicvf_update_stats(struct nicvf *nic)
1354
1351
drv_stats -> tx_frames_ok = stats -> tx_ucast_frames_ok +
1355
1352
stats -> tx_bcast_frames_ok +
1356
1353
stats -> tx_mcast_frames_ok ;
1354
+ drv_stats -> rx_frames_ok = stats -> rx_ucast_frames +
1355
+ stats -> rx_bcast_frames +
1356
+ stats -> rx_mcast_frames ;
1357
1357
drv_stats -> rx_drops = stats -> rx_drop_red +
1358
1358
stats -> rx_drop_overrun ;
1359
1359
drv_stats -> tx_drops = stats -> tx_drops ;
@@ -1538,6 +1538,9 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1538
1538
1539
1539
nicvf_send_vf_struct (nic );
1540
1540
1541
+ if (!pass1_silicon (nic -> pdev ))
1542
+ nic -> hw_tso = true;
1543
+
1541
1544
/* Check if this VF is in QS only mode */
1542
1545
if (nic -> sqs_mode )
1543
1546
return 0 ;
@@ -1557,9 +1560,6 @@ static int nicvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1557
1560
1558
1561
netdev -> vlan_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO ;
1559
1562
1560
- if (!pass1_silicon (nic -> pdev ))
1561
- nic -> hw_tso = true;
1562
-
1563
1563
netdev -> netdev_ops = & nicvf_netdev_ops ;
1564
1564
netdev -> watchdog_timeo = NICVF_TX_TIMEOUT ;
1565
1565
0 commit comments