File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
drivers/net/ethernet/netronome/nfp Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -528,20 +528,20 @@ struct nfp_net {
528
528
struct timer_list rx_filter_stats_timer ;
529
529
spinlock_t rx_filter_lock ;
530
530
531
- int max_tx_rings ;
532
- int max_rx_rings ;
531
+ unsigned int max_tx_rings ;
532
+ unsigned int max_rx_rings ;
533
533
534
- int num_tx_rings ;
535
- int num_rx_rings ;
534
+ unsigned int num_tx_rings ;
535
+ unsigned int num_rx_rings ;
536
536
537
537
int stride_tx ;
538
538
int stride_rx ;
539
539
540
540
int txd_cnt ;
541
541
int rxd_cnt ;
542
542
543
- u8 num_irqs ;
544
- u8 num_r_vecs ;
543
+ unsigned int num_irqs ;
544
+ unsigned int num_r_vecs ;
545
545
struct nfp_net_r_vector r_vecs [NFP_NET_MAX_R_VECS ];
546
546
struct msix_entry irq_entries [NFP_NET_MAX_IRQS ];
547
547
@@ -757,8 +757,9 @@ extern const char nfp_net_driver_version[];
757
757
void nfp_net_get_fw_version (struct nfp_net_fw_version * fw_ver ,
758
758
void __iomem * ctrl_bar );
759
759
760
- struct nfp_net * nfp_net_netdev_alloc (struct pci_dev * pdev ,
761
- int max_tx_rings , int max_rx_rings );
760
+ struct nfp_net *
761
+ nfp_net_netdev_alloc (struct pci_dev * pdev ,
762
+ unsigned int max_tx_rings , unsigned int max_rx_rings );
762
763
void nfp_net_netdev_free (struct nfp_net * nn );
763
764
int nfp_net_netdev_init (struct net_device * netdev );
764
765
void nfp_net_netdev_clean (struct net_device * netdev );
Original file line number Diff line number Diff line change @@ -318,8 +318,8 @@ static int nfp_net_msix_alloc(struct nfp_net *nn, int nr_vecs)
318
318
*/
319
319
static int nfp_net_irqs_wanted (struct nfp_net * nn )
320
320
{
321
+ unsigned int vecs ;
321
322
int ncpus ;
322
- int vecs ;
323
323
324
324
ncpus = num_online_cpus ();
325
325
@@ -2701,7 +2701,8 @@ void nfp_net_info(struct nfp_net *nn)
2701
2701
* Return: NFP Net device structure, or ERR_PTR on error.
2702
2702
*/
2703
2703
struct nfp_net * nfp_net_netdev_alloc (struct pci_dev * pdev ,
2704
- int max_tx_rings , int max_rx_rings )
2704
+ unsigned int max_tx_rings ,
2705
+ unsigned int max_rx_rings )
2705
2706
{
2706
2707
struct net_device * netdev ;
2707
2708
struct nfp_net * nn ;
You can’t perform that action at this time.
0 commit comments