Skip to content

Commit e0d1095

Browse files
Cong Wangdavem330
authored andcommitted
net: rename CONFIG_NET_LL_RX_POLL to CONFIG_NET_RX_BUSY_POLL
Eliezer renames several *ll_poll to *busy_poll, but forgets CONFIG_NET_LL_RX_POLL, so in case of confusion, rename it too. Cc: Eliezer Tamir <eliezer.tamir@linux.intel.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent dfcefb0 commit e0d1095

18 files changed

Lines changed: 41 additions & 41 deletions

File tree

‎Documentation/sysctl/net.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Default: 64
5252

5353
busy_read
5454
----------------
55-
Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL)
55+
Low latency busy poll timeout for socket reads. (needs CONFIG_NET_RX_BUSY_POLL)
5656
Approximate time in us to busy loop waiting for packets on the device queue.
5757
This sets the default value of the SO_BUSY_POLL socket option.
5858
Can be set or overridden per socket by setting socket option SO_BUSY_POLL,
@@ -63,7 +63,7 @@ Default: 0 (off)
6363

6464
busy_poll
6565
----------------
66-
Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL)
66+
Low latency busy poll timeout for poll and select. (needs CONFIG_NET_RX_BUSY_POLL)
6767
Approximate time in us to busy loop waiting for events.
6868
Recommended value depends on the number of sockets you poll on.
6969
For several sockets 50, for several hundreds 100.

‎drivers/net/ethernet/broadcom/bnx2x/bnx2x.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ struct bnx2x_fastpath {
486486

487487
struct napi_struct napi;
488488

489-
#ifdef CONFIG_NET_LL_RX_POLL
489+
#ifdef CONFIG_NET_RX_BUSY_POLL
490490
unsigned int state;
491491
#define BNX2X_FP_STATE_IDLE 0
492492
#define BNX2X_FP_STATE_NAPI (1 << 0) /* NAPI owns this FP */
@@ -498,7 +498,7 @@ struct bnx2x_fastpath {
498498
#define BNX2X_FP_USER_PEND (BNX2X_FP_STATE_POLL | BNX2X_FP_STATE_POLL_YIELD)
499499
/* protect state */
500500
spinlock_t lock;
501-
#endif /* CONFIG_NET_LL_RX_POLL */
501+
#endif /* CONFIG_NET_RX_BUSY_POLL */
502502

503503
union host_hc_status_block status_blk;
504504
/* chip independent shortcuts into sb structure */
@@ -572,7 +572,7 @@ struct bnx2x_fastpath {
572572
#define bnx2x_fp_stats(bp, fp) (&((bp)->fp_stats[(fp)->index]))
573573
#define bnx2x_fp_qstats(bp, fp) (&((bp)->fp_stats[(fp)->index].eth_q_stats))
574574

575-
#ifdef CONFIG_NET_LL_RX_POLL
575+
#ifdef CONFIG_NET_RX_BUSY_POLL
576576
static inline void bnx2x_fp_init_lock(struct bnx2x_fastpath *fp)
577577
{
578578
spin_lock_init(&fp->lock);
@@ -680,7 +680,7 @@ static inline bool bnx2x_fp_ll_polling(struct bnx2x_fastpath *fp)
680680
{
681681
return false;
682682
}
683-
#endif /* CONFIG_NET_LL_RX_POLL */
683+
#endif /* CONFIG_NET_RX_BUSY_POLL */
684684

685685
/* Use 2500 as a mini-jumbo MTU for FCoE */
686686
#define BNX2X_FCOE_MINI_JUMBO_MTU 2500

‎drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3117,7 +3117,7 @@ int bnx2x_poll(struct napi_struct *napi, int budget)
31173117
return work_done;
31183118
}
31193119

3120-
#ifdef CONFIG_NET_LL_RX_POLL
3120+
#ifdef CONFIG_NET_RX_BUSY_POLL
31213121
/* must be called with local_bh_disable()d */
31223122
int bnx2x_low_latency_recv(struct napi_struct *napi)
31233123
{

‎drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12026,7 +12026,7 @@ static const struct net_device_ops bnx2x_netdev_ops = {
1202612026
.ndo_fcoe_get_wwn = bnx2x_fcoe_get_wwn,
1202712027
#endif
1202812028

12029-
#ifdef CONFIG_NET_LL_RX_POLL
12029+
#ifdef CONFIG_NET_RX_BUSY_POLL
1203012030
.ndo_busy_poll = bnx2x_low_latency_recv,
1203112031
#endif
1203212032
};

‎drivers/net/ethernet/intel/ixgbe/ixgbe.h‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
#include <net/busy_poll.h>
5656

57-
#ifdef CONFIG_NET_LL_RX_POLL
57+
#ifdef CONFIG_NET_RX_BUSY_POLL
5858
#define LL_EXTENDED_STATS
5959
#endif
6060
/* common prefix used by pr_<> macros */
@@ -366,7 +366,7 @@ struct ixgbe_q_vector {
366366
struct rcu_head rcu; /* to avoid race with update stats on free */
367367
char name[IFNAMSIZ + 9];
368368

369-
#ifdef CONFIG_NET_LL_RX_POLL
369+
#ifdef CONFIG_NET_RX_BUSY_POLL
370370
unsigned int state;
371371
#define IXGBE_QV_STATE_IDLE 0
372372
#define IXGBE_QV_STATE_NAPI 1 /* NAPI owns this QV */
@@ -377,12 +377,12 @@ struct ixgbe_q_vector {
377377
#define IXGBE_QV_YIELD (IXGBE_QV_STATE_NAPI_YIELD | IXGBE_QV_STATE_POLL_YIELD)
378378
#define IXGBE_QV_USER_PEND (IXGBE_QV_STATE_POLL | IXGBE_QV_STATE_POLL_YIELD)
379379
spinlock_t lock;
380-
#endif /* CONFIG_NET_LL_RX_POLL */
380+
#endif /* CONFIG_NET_RX_BUSY_POLL */
381381

382382
/* for dynamic allocation of rings associated with this q_vector */
383383
struct ixgbe_ring ring[0] ____cacheline_internodealigned_in_smp;
384384
};
385-
#ifdef CONFIG_NET_LL_RX_POLL
385+
#ifdef CONFIG_NET_RX_BUSY_POLL
386386
static inline void ixgbe_qv_init_lock(struct ixgbe_q_vector *q_vector)
387387
{
388388

@@ -462,7 +462,7 @@ static inline bool ixgbe_qv_ll_polling(struct ixgbe_q_vector *q_vector)
462462
WARN_ON(!(q_vector->state & IXGBE_QV_LOCKED));
463463
return q_vector->state & IXGBE_QV_USER_PEND;
464464
}
465-
#else /* CONFIG_NET_LL_RX_POLL */
465+
#else /* CONFIG_NET_RX_BUSY_POLL */
466466
static inline void ixgbe_qv_init_lock(struct ixgbe_q_vector *q_vector)
467467
{
468468
}
@@ -491,7 +491,7 @@ static inline bool ixgbe_qv_ll_polling(struct ixgbe_q_vector *q_vector)
491491
{
492492
return false;
493493
}
494-
#endif /* CONFIG_NET_LL_RX_POLL */
494+
#endif /* CONFIG_NET_RX_BUSY_POLL */
495495

496496
#ifdef CONFIG_IXGBE_HWMON
497497

‎drivers/net/ethernet/intel/ixgbe/ixgbe_main.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,7 +1998,7 @@ static int ixgbe_clean_rx_irq(struct ixgbe_q_vector *q_vector,
19981998
return total_rx_packets;
19991999
}
20002000

2001-
#ifdef CONFIG_NET_LL_RX_POLL
2001+
#ifdef CONFIG_NET_RX_BUSY_POLL
20022002
/* must be called with local_bh_disable()d */
20032003
static int ixgbe_low_latency_recv(struct napi_struct *napi)
20042004
{
@@ -2030,7 +2030,7 @@ static int ixgbe_low_latency_recv(struct napi_struct *napi)
20302030

20312031
return found;
20322032
}
2033-
#endif /* CONFIG_NET_LL_RX_POLL */
2033+
#endif /* CONFIG_NET_RX_BUSY_POLL */
20342034

20352035
/**
20362036
* ixgbe_configure_msix - Configure MSI-X hardware
@@ -7227,7 +7227,7 @@ static const struct net_device_ops ixgbe_netdev_ops = {
72277227
#ifdef CONFIG_NET_POLL_CONTROLLER
72287228
.ndo_poll_controller = ixgbe_netpoll,
72297229
#endif
7230-
#ifdef CONFIG_NET_LL_RX_POLL
7230+
#ifdef CONFIG_NET_RX_BUSY_POLL
72317231
.ndo_busy_poll = ixgbe_low_latency_recv,
72327232
#endif
72337233
#ifdef IXGBE_FCOE

‎drivers/net/ethernet/mellanox/mlx4/en_ethtool.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static int mlx4_en_get_sset_count(struct net_device *dev, int sset)
223223
case ETH_SS_STATS:
224224
return (priv->stats_bitmap ? bit_count : NUM_ALL_STATS) +
225225
(priv->tx_ring_num * 2) +
226-
#ifdef CONFIG_NET_LL_RX_POLL
226+
#ifdef CONFIG_NET_RX_BUSY_POLL
227227
(priv->rx_ring_num * 5);
228228
#else
229229
(priv->rx_ring_num * 2);
@@ -276,7 +276,7 @@ static void mlx4_en_get_ethtool_stats(struct net_device *dev,
276276
for (i = 0; i < priv->rx_ring_num; i++) {
277277
data[index++] = priv->rx_ring[i].packets;
278278
data[index++] = priv->rx_ring[i].bytes;
279-
#ifdef CONFIG_NET_LL_RX_POLL
279+
#ifdef CONFIG_NET_RX_BUSY_POLL
280280
data[index++] = priv->rx_ring[i].yields;
281281
data[index++] = priv->rx_ring[i].misses;
282282
data[index++] = priv->rx_ring[i].cleaned;
@@ -344,7 +344,7 @@ static void mlx4_en_get_strings(struct net_device *dev,
344344
"rx%d_packets", i);
345345
sprintf(data + (index++) * ETH_GSTRING_LEN,
346346
"rx%d_bytes", i);
347-
#ifdef CONFIG_NET_LL_RX_POLL
347+
#ifdef CONFIG_NET_RX_BUSY_POLL
348348
sprintf(data + (index++) * ETH_GSTRING_LEN,
349349
"rx%d_napi_yield", i);
350350
sprintf(data + (index++) * ETH_GSTRING_LEN,

‎drivers/net/ethernet/mellanox/mlx4/en_netdev.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ int mlx4_en_setup_tc(struct net_device *dev, u8 up)
6868
return 0;
6969
}
7070

71-
#ifdef CONFIG_NET_LL_RX_POLL
71+
#ifdef CONFIG_NET_RX_BUSY_POLL
7272
/* must be called with local_bh_disable()d */
7373
static int mlx4_en_low_latency_recv(struct napi_struct *napi)
7474
{
@@ -94,7 +94,7 @@ static int mlx4_en_low_latency_recv(struct napi_struct *napi)
9494

9595
return done;
9696
}
97-
#endif /* CONFIG_NET_LL_RX_POLL */
97+
#endif /* CONFIG_NET_RX_BUSY_POLL */
9898

9999
#ifdef CONFIG_RFS_ACCEL
100100

@@ -2140,7 +2140,7 @@ static const struct net_device_ops mlx4_netdev_ops = {
21402140
#ifdef CONFIG_RFS_ACCEL
21412141
.ndo_rx_flow_steer = mlx4_en_filter_rfs,
21422142
#endif
2143-
#ifdef CONFIG_NET_LL_RX_POLL
2143+
#ifdef CONFIG_NET_RX_BUSY_POLL
21442144
.ndo_busy_poll = mlx4_en_low_latency_recv,
21452145
#endif
21462146
};

‎drivers/net/ethernet/mellanox/mlx4/mlx4_en.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ struct mlx4_en_rx_ring {
292292
void *rx_info;
293293
unsigned long bytes;
294294
unsigned long packets;
295-
#ifdef CONFIG_NET_LL_RX_POLL
295+
#ifdef CONFIG_NET_RX_BUSY_POLL
296296
unsigned long yields;
297297
unsigned long misses;
298298
unsigned long cleaned;
@@ -318,7 +318,7 @@ struct mlx4_en_cq {
318318
struct mlx4_cqe *buf;
319319
#define MLX4_EN_OPCODE_ERROR 0x1e
320320

321-
#ifdef CONFIG_NET_LL_RX_POLL
321+
#ifdef CONFIG_NET_RX_BUSY_POLL
322322
unsigned int state;
323323
#define MLX4_EN_CQ_STATE_IDLE 0
324324
#define MLX4_EN_CQ_STATE_NAPI 1 /* NAPI owns this CQ */
@@ -329,7 +329,7 @@ struct mlx4_en_cq {
329329
#define CQ_YIELD (MLX4_EN_CQ_STATE_NAPI_YIELD | MLX4_EN_CQ_STATE_POLL_YIELD)
330330
#define CQ_USER_PEND (MLX4_EN_CQ_STATE_POLL | MLX4_EN_CQ_STATE_POLL_YIELD)
331331
spinlock_t poll_lock; /* protects from LLS/napi conflicts */
332-
#endif /* CONFIG_NET_LL_RX_POLL */
332+
#endif /* CONFIG_NET_RX_BUSY_POLL */
333333
};
334334

335335
struct mlx4_en_port_profile {
@@ -580,7 +580,7 @@ struct mlx4_mac_entry {
580580
struct rcu_head rcu;
581581
};
582582

583-
#ifdef CONFIG_NET_LL_RX_POLL
583+
#ifdef CONFIG_NET_RX_BUSY_POLL
584584
static inline void mlx4_en_cq_init_lock(struct mlx4_en_cq *cq)
585585
{
586586
spin_lock_init(&cq->poll_lock);
@@ -687,7 +687,7 @@ static inline bool mlx4_en_cq_ll_polling(struct mlx4_en_cq *cq)
687687
{
688688
return false;
689689
}
690-
#endif /* CONFIG_NET_LL_RX_POLL */
690+
#endif /* CONFIG_NET_RX_BUSY_POLL */
691691

692692
#define MLX4_EN_WOL_DO_MODIFY (1ULL << 63)
693693

‎include/linux/netdevice.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ struct net_device_ops {
973973
gfp_t gfp);
974974
void (*ndo_netpoll_cleanup)(struct net_device *dev);
975975
#endif
976-
#ifdef CONFIG_NET_LL_RX_POLL
976+
#ifdef CONFIG_NET_RX_BUSY_POLL
977977
int (*ndo_busy_poll)(struct napi_struct *dev);
978978
#endif
979979
int (*ndo_set_vf_mac)(struct net_device *dev,

0 commit comments

Comments
 (0)