net: fix a compile error when CONFIG_NET_LL_RX_POLL is not set
Subsystems (8)
PATCH 1/2 net: fix a compile error when CONFIG_NET_LL_RX_POLL is not set
From: Cong Wang <[email protected]>
When CONFIG_NET_LL_RX_POLL is not set, I got:
net/socket.c: In function ‘sock_poll’:net/socket.c:1165:4: error: implicit declaration of function ‘sk_busy_loop’ [-Werror=implicit-function-declaration]
Fix this by adding a nop when !CONFIG_NET_LL_RX_POLL.
---
include/net/busy_poll.h +5 -0
@@ -181,5 +181,10 @@ static inline bool busy_loop_timeout(unsigned long end_time)return true; } +static inline bool sk_busy_loop (struct sock *sk,int nonblock) +{ +return false; +} +#endif /* CONFIG_NET_LL_RX_POLL */ #endif /* _LINUX_NET_BUSY_POLL_H */
PATCH v2 2/2 net: rename CONFIG_NET_LL_RX_POLL to CONFIG_NET_RX_BUSY_POLL
From: Cong Wang <[email protected]>
Eliezer renames several *ll_poll to *busy_poll, but forgets CONFIG_NET_LL_RX_POLL, so in case of confusion, rename it too.
---
v2: fix doc as well
Documentation/sysctl/net.txt | 4 ++-- drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 8 ++++---- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 2 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 12 ++++++------ drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 6 +++--- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 6 +++--- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 6 +++--- drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 10 +++++----- include/linux/netdevice.h | 2 +- include/linux/skbuff.h | 2 +- include/net/busy_poll.h | 6 +++--- include/net/sock.h | 2 +- net/Kconfig | 2 +- net/core/skbuff.c | 2 +- net/core/sock.c | 6 +++--- net/core/sysctl_net_core.c | 2 +- net/socket.c | 2 +- 18 files changed, 41 insertions(+), 41 deletions(-)
Documentation/sysctl/net.txt +2 -2
@@ -52,7 +52,7 @@ Default: 64 busy_read ---------------- -Low latency busy poll timeout for socket reads. (needs CONFIG_NET_LL_RX_POLL) +Low latency busy poll timeout for socket reads. (needs CONFIG_NET_RX_BUSY_POLL) Approximate time in us to busy loop waiting for packets on the device queue. This sets the default value of the SO_BUSY_POLL socket option. Can be set or overridden per socket by setting socket option SO_BUSY_POLL,
@@ -63,7 +63,7 @@ Default: 0 (off) busy_poll ---------------- -Low latency busy poll timeout for poll and select. (needs CONFIG_NET_LL_RX_POLL) +Low latency busy poll timeout for poll and select. (needs CONFIG_NET_RX_BUSY_POLL) Approximate time in us to busy loop waiting for events. Recommended value depends on the number of sockets you poll on. For several sockets 50, for several hundreds 100.
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +4 -4
@@ -486,7 +486,7 @@ struct bnx2x_fastpath {struct napi_struct napi; -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL unsigned int state;#define BNX2X_FP_STATE_IDLE 0#define BNX2X_FP_STATE_NAPI (1 << 0)/* NAPI owns this FP */
@@ -498,7 +498,7 @@ struct bnx2x_fastpath {#define BNX2X_FP_USER_PEND (BNX2X_FP_STATE_POLL | BNX2X_FP_STATE_POLL_YIELD)/* protect state */ spinlock_t lock; -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ union host_hc_status_block status_blk;/* chip independent shortcuts into sb structure */
@@ -572,7 +572,7 @@ struct bnx2x_fastpath {#define bnx2x_fp_stats (bp, fp) (&((bp)->fp_stats[(fp)->index]))#define bnx2x_fp_qstats (bp, fp) (&((bp)->fp_stats[(fp)->index].eth_q_stats)) -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL static inline void bnx2x_fp_init_lock (struct bnx2x_fastpath *fp) {spin_lock_init (&fp->lock);
@@ -680,7 +680,7 @@ static inline bool bnx2x_fp_ll_polling(struct bnx2x_fastpath *fp) {return false; } -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ /* Use 2500 as a mini-jumbo MTU for FCoE */ #define BNX2X_FCOE_MINI_JUMBO_MTU 2500
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +1 -1
@@ -3117,7 +3117,7 @@ int bnx2x_poll(struct napi_struct *napi, int budget)return work_done; } -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL /* must be called with local_bh_disable()d */ int bnx2x_low_latency_recv (struct napi_struct *napi) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +1 -1
@@ -12026,7 +12026,7 @@ static const struct net_device_ops bnx2x_netdev_ops = { .ndo_fcoe_get_wwn = bnx2x_fcoe_get_wwn,#endif -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL .ndo_busy_poll = bnx2x_low_latency_recv,#endif };
drivers/net/ethernet/intel/ixgbe/ixgbe.h +6 -6
@@ -54,7 +54,7 @@#include <net/busy_poll.h> -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL #define LL_EXTENDED_STATS #endif /* common prefix used by pr_<> macros */
@@ -366,7 +366,7 @@ struct ixgbe_q_vector {struct rcu_head rcu;/* to avoid race with update stats on free */ char name[IFNAMSIZ +9 ]; -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL unsigned int state;#define IXGBE_QV_STATE_IDLE 0#define IXGBE_QV_STATE_NAPI 1/* NAPI owns this QV */
@@ -377,12 +377,12 @@ struct ixgbe_q_vector {#define IXGBE_QV_YIELD (IXGBE_QV_STATE_NAPI_YIELD | IXGBE_QV_STATE_POLL_YIELD)#define IXGBE_QV_USER_PEND (IXGBE_QV_STATE_POLL | IXGBE_QV_STATE_POLL_YIELD)spinlock_t lock; -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ /* for dynamic allocation of rings associated with this q_vector */ struct ixgbe_ring ring[0 ]____cacheline_internodealigned_in_smp ; }; -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL static inline void ixgbe_qv_init_lock (struct ixgbe_q_vector *q_vector) {
@@ -462,7 +462,7 @@ static inline bool ixgbe_qv_ll_polling(struct ixgbe_q_vector *q_vector)WARN_ON (!(q_vector->state &IXGBE_QV_LOCKED )); return q_vector->state & IXGBE_QV_USER_PEND; } -#else /* CONFIG_NET_LL_RX_POLL */ +#else /* CONFIG_NET_RX_BUSY_POLL */ static inline void ixgbe_qv_init_lock (struct ixgbe_q_vector *q_vector) { }
@@ -491,7 +491,7 @@ static inline bool ixgbe_qv_ll_polling(struct ixgbe_q_vector *q_vector) {return false; } -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ #ifdef CONFIG_IXGBE_HWMON
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +3 -3
@@ -2079,7 +2079,7 @@ static int ixgbe_clean_rx_irq(struct ixgbe_q_vector *q_vector,return total_rx_packets; } -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL /* must be called with local_bh_disable()d */ static int ixgbe_low_latency_recv (struct napi_struct *napi) {
@@ -2111,7 +2111,7 @@ static int ixgbe_low_latency_recv(struct napi_struct *napi) return found; } -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ /** * ixgbe_configure_msix - Configure MSI-X hardware
@@ -7310,7 +7310,7 @@ static const struct net_device_ops ixgbe_netdev_ops = {#ifdef CONFIG_NET_POLL_CONTROLLER .ndo_poll_controller = ixgbe_netpoll,#endif -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL .ndo_busy_poll = ixgbe_low_latency_recv,#endif #ifdef IXGBE_FCOE
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +3 -3
@@ -223,7 +223,7 @@ static int mlx4_en_get_sset_count(struct net_device *dev, int sset)case ETH_SS_STATS :return (priv->stats_bitmap ? bit_count :NUM_ALL_STATS ) + (priv->tx_ring_num *2 ) + -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL (priv->rx_ring_num *5 );#else (priv->rx_ring_num *2 );
@@ -276,7 +276,7 @@ static void mlx4_en_get_ethtool_stats(struct net_device *dev,for (i =0 ; i < priv->rx_ring_num; i++) { data[index++] = priv->rx_ring[i].packets; data[index++] = priv->rx_ring[i].bytes; -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL data[index++] = priv->rx_ring[i].yields; data[index++] = priv->rx_ring[i].misses; data[index++] = priv->rx_ring[i].cleaned;
@@ -344,7 +344,7 @@ static void mlx4_en_get_strings(struct net_device *dev, "rx%d_packets", i);sprintf (data + (index++) *ETH_GSTRING_LEN ,"rx%d_bytes" , i); -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL sprintf (data + (index++) *ETH_GSTRING_LEN ,"rx%d_napi_yield" , i); sprintf(data + (index++) * ETH_GSTRING_LEN,
drivers/net/ethernet/mellanox/mlx4/en_netdev.c +3 -3
@@ -68,7 +68,7 @@ int mlx4_en_setup_tc(struct net_device *dev, u8 up)return 0 ; } -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL /* must be called with local_bh_disable()d */ static int mlx4_en_low_latency_recv (struct napi_struct *napi) {
@@ -94,7 +94,7 @@ static int mlx4_en_low_latency_recv(struct napi_struct *napi) return done; } -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ #ifdef CONFIG_RFS_ACCEL
@@ -2140,7 +2140,7 @@ static const struct net_device_ops mlx4_netdev_ops = {#ifdef CONFIG_RFS_ACCEL .ndo_rx_flow_steer = mlx4_en_filter_rfs,#endif -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL .ndo_busy_poll = mlx4_en_low_latency_recv,#endif };
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +5 -5
@@ -292,7 +292,7 @@ struct mlx4_en_rx_ring {void *rx_info;unsigned long bytes;unsigned long packets; -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL unsigned long yields;unsigned long misses;unsigned long cleaned;
@@ -318,7 +318,7 @@ struct mlx4_en_cq {struct mlx4_cqe *buf;#define MLX4_EN_OPCODE_ERROR 0x1e -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL unsigned int state;#define MLX4_EN_CQ_STATE_IDLE 0#define MLX4_EN_CQ_STATE_NAPI 1/* NAPI owns this CQ */
@@ -329,7 +329,7 @@ struct mlx4_en_cq {#define CQ_YIELD (MLX4_EN_CQ_STATE_NAPI_YIELD | MLX4_EN_CQ_STATE_POLL_YIELD)#define CQ_USER_PEND (MLX4_EN_CQ_STATE_POLL | MLX4_EN_CQ_STATE_POLL_YIELD)spinlock_t poll_lock;/* protects from LLS/napi conflicts */ -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ };struct mlx4_en_port_profile {
@@ -580,7 +580,7 @@ struct mlx4_mac_entry {struct rcu_head rcu; }; -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL static inline void mlx4_en_cq_init_lock (struct mlx4_en_cq *cq) {spin_lock_init (&cq->poll_lock);
@@ -687,7 +687,7 @@ static inline bool mlx4_en_cq_ll_polling(struct mlx4_en_cq *cq) {return false; } -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ #define MLX4_EN_WOL_DO_MODIFY (1ULL << 63)
include/linux/netdevice.h +1 -1
@@ -989,7 +989,7 @@ struct net_device_ops { gfp_t gfp);void (*ndo_netpoll_cleanup)(struct net_device *dev);#endif -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL int (*ndo_busy_poll)(struct napi_struct *dev);#endif int (*ndo_set_vf_mac)(struct net_device *dev,
include/linux/skbuff.h +1 -1
@@ -501,7 +501,7 @@ struct sk_buff {/* 7/9 bit hole (depending on ndisc_nodetype presence) */ kmemcheck_bitfield_end (flags2); -#if defined CONFIG_NET_DMA || defined CONFIG_NET_LL_RX_POLL +#if defined CONFIG_NET_DMA || defined CONFIG_NET_RX_BUSY_POLL union { unsigned int napi_id; dma_cookie_t dma_cookie;
include/net/busy_poll.h +3 -3
@@ -27,7 +27,7 @@#include <linux/netdevice.h> #include <net/ip.h> -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL struct napi_struct ;extern unsigned int sysctl_net_busy_read__read_mostly ;
@@ -146,7 +146,7 @@ static inline void sk_mark_napi_id(struct sock *sk, struct sk_buff *skb) sk->sk_napi_id = skb->napi_id; } -#else /* CONFIG_NET_LL_RX_POLL */ +#else /* CONFIG_NET_RX_BUSY_POLL */ static inline unsigned long net_busy_loop_on (void ) {return 0 ;
@@ -181,5 +181,5 @@ static inline bool busy_loop_timeout(unsigned long end_time)return true; } -#endif /* CONFIG_NET_LL_RX_POLL */ +#endif /* CONFIG_NET_RX_BUSY_POLL */ #endif /* _LINUX_NET_BUSY_POLL_H */
include/net/sock.h +1 -1
@@ -327,7 +327,7 @@ struct sock {#ifdef CONFIG_RPS __u32 sk_rxhash;#endif -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL unsigned int sk_napi_id;unsigned int sk_ll_usec;#endif
net/Kconfig +1 -1
@@ -244,7 +244,7 @@ config NETPRIO_CGROUP Cgroup subsystem for use in assigning processes to network priorities on a per-interface basis -config NET_LL_RX_POLL +config NET_RX_BUSY_POLL boolean default y
net/core/skbuff.c +1 -1
@@ -739,7 +739,7 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)skb_copy_secmark (new, old); -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL new->napi_id = old->napi_id;#endif }
net/core/sock.c +3 -3
@@ -901,7 +901,7 @@ set_rcvbuf:sock_valbool_flag (sk,SOCK_SELECT_ERR_QUEUE , valbool);break ; -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL case SO_BUSY_POLL :/* allow unprivileged users to decrease the value */ if ((val > sk->sk_ll_usec) && !capable (CAP_NET_ADMIN ))
@@ -1171,7 +1171,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname, v.val =sock_flag (sk,SOCK_SELECT_ERR_QUEUE );break ; -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL case SO_BUSY_POLL : v.val = sk->sk_ll_usec;break ;
@@ -2312,7 +2312,7 @@ void sock_init_data(struct socket *sock, struct sock *sk) sk->sk_stamp =ktime_set (-1L ,0 ); -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL sk->sk_napi_id =0 ; sk->sk_ll_usec = sysctl_net_busy_read;#endif
net/core/sysctl_net_core.c +1 -1
@@ -298,7 +298,7 @@ static struct ctl_table net_core_table[] = { .proc_handler = flow_limit_table_len_sysctl },#endif /* CONFIG_NET_FLOW_LIMIT */ -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL { .procname = "busy_poll", .data = &sysctl_net_busy_poll,
net/socket.c +1 -1
@@ -106,7 +106,7 @@#include <linux/atalk.h> #include <net/busy_poll.h> -#ifdef CONFIG_NET_LL_RX_POLL +#ifdef CONFIG_NET_RX_BUSY_POLL unsigned int sysctl_net_busy_read__read_mostly ;unsigned int sysctl_net_busy_poll__read_mostly ;#endif
Quoted 9 lines · Cong Wang
From: Cong Wang <[email protected]>
When
CONFIG_NET_LL_RX_POLLis not set, I got:
net/socket.c: In function ‘sock_poll’:net/socket.c:1165:4: error: implicit declaration of function ‘sk_busy_loop’ [-Werror=implicit-function-declaration]Fix this by adding a nop when !CONFIG_NET_LL_RX_POLL.
Good catch!
There is a placeholder function, but it has a typo in the name. With all the renaming I made a mistake and called the do-nothing function sk_busy_poll while the implemented function is called sk_busy_loop.
so what we need is to rename sk_busy_loop() into sk_busy_poll.
(sorry I'm out of the office so I can't do much more than look at the code at the moment.)
Thanks,
Eliezer
David Miller
maintainerFrom: Cong Wang <[email protected]>
Date: Thu, 1 Aug 2013 11:10:24 +0800
Quoted 4 lines
From: Cong Wang <[email protected]>
When
CONFIG_NET_LL_RX_POLLis not set, I got:
Quoted 8 lines
net/socket.c: In function ‘sock_poll’:net/socket.c:1165:4: error: implicit declaration of function ‘sk_busy_loop’ [-Werror=implicit-function-declaration]Fix this by adding a nop when !CONFIG_NET_LL_RX_POLL.
Cc Eliezer Tamir <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by Cong Wang <[email protected]>
Is this really a net-next specific problem? Doesn't it happen in 'net' too?
If so, it should be fixed in 'net', not just 'net-next'.
Quoted 5 lines · David Miller
Quoted 5 lines
net/socket.c: In function ‘sock_poll’:net/socket.c:1165:4: error: implicit declaration of function ‘sk_busy_loop’ [-Werror=implicit-function-declaration]Fix this by adding a nop when !CONFIG_NET_LL_RX_POLL.
Quoted 8 lines
Quoted 3 lines
Cc Eliezer Tamir <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by Cong Wang <[email protected]>Is this really a net-next specific problem? Doesn't it happen in 'net' too?
If so, it should be fixed in 'net', not just 'net-next'.
Both issues are present in net.
And since these are bug fixes, IMHO both patches should go to net.
Quoted 11 lines · Eliezer Tamir
Quoted 9 lines · Cong Wang
From: Cong Wang <[email protected]>
When
CONFIG_NET_LL_RX_POLLis not set, I got:
net/socket.c: In function ‘sock_poll’:net/socket.c:1165:4: error: implicit declaration of function ‘sk_busy_loop’ [-Werror=implicit-function-declaration]Fix this by adding a nop when !CONFIG_NET_LL_RX_POLL.
Quoted 8 lines
Good catch!
There is a placeholder function, but it has a typo in the name. With all the renaming I made a mistake and called the do-nothing function
sk_busy_pollwhile the implemented function is calledsk_busy_loop.so what we need is to rename
sk_busy_loop()intosk_busy_poll.
Ok.
Thinking about it again, what is the point of your commit commit 89bf1b5a683df497c572c4d3bd3f9c9aa919d773 (net: remove NET_LL_RX_POLL config menue)? After that commit, CONFIG_NET_LL_RX_POLL is not visible by user and no other configs select it, also since it defaults to y, it will be _always_ enabled. If this is really what you want, we can simply remove all !CONFIG_NET_LL_RX_POLL code.
David Miller
maintainerFrom: Cong Wang <[email protected]>
Date: Thu, 01 Aug 2013 16:08:07 +0800
Quoted 6 lines
Thinking about it again, what is the point of your commit commit
89bf1b5a683df497c572c4d3bd3f9c9aa919d773(net: removeNET_LL_RX_POLLconfig menue)? After that commit,CONFIG_NET_LL_RX_POLLis not visible by user and no other configs select it, also since it defaults to y, it will be _always_ enabled. If this is really what you want, we can simply remove all !CONFIG_NET_LL_RX_POLL code.
Yes we could do that, it has no dependencies which is the usual reason to have a hidden Kconfig var like this.
From: Cong Wang <[email protected]>
Date: Thu, 1 Aug 2013 11:10:24 +0800
Quoted 4 lines
From: Cong Wang <[email protected]>
When
CONFIG_NET_LL_RX_POLLis not set, I got:
Quoted 8 lines
net/socket.c: In function ‘sock_poll’:net/socket.c:1165:4: error: implicit declaration of function ‘sk_busy_loop’ [-Werror=implicit-function-declaration]Fix this by adding a nop when !CONFIG_NET_LL_RX_POLL.
Cc Eliezer Tamir <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied to net
David Miller
maintainerRe: [Patch v2 net-next 2/2] net: rename CONFIG_NET_LL_RX_POLL to CONFIG_NET_RX_BUSY_POLL
In reply to Cong WangFrom: Cong Wang <[email protected]>
Date: Thu, 1 Aug 2013 11:10:25 +0800
Quoted 8 lines
From: Cong Wang <[email protected]>
Eliezer renames several
*ll_pollto*busy_poll, but forgetsCONFIG_NET_LL_RX_POLL, so in case of confusion, rename it too.Cc Eliezer Tamir <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by Cong Wang <[email protected]>
Also applied to net, thanks.
Quoted 10 lines · David Miller
From: Cong Wang <[email protected]>
Date: Thu, 01 Aug 2013 16:08:07 +0800Quoted 6 lines
Thinking about it again, what is the point of your commit commit
89bf1b5a683df497c572c4d3bd3f9c9aa919d773(net: removeNET_LL_RX_POLLconfig menue)? After that commit,CONFIG_NET_LL_RX_POLLis not visible by user and no other configs select it, also since it defaults to y, it will be _always_ enabled. If this is really what you want, we can simply remove all !CONFIG_NET_LL_RX_POLL code.
Quoted 2 lines
Yes we could do that, it has no dependencies which is the usual reason to have a hidden
Kconfigvar like this.
I think we still need a config option that depends on net and the placeholder code.
What happens then if someone does not configure networking? Won't this break select and poll?
David Miller
maintainerFrom: Eliezer Tamir <[email protected]>
Date: Fri, 02 Aug 2013 06:04:11 +0300
Quoted 11 lines · David Miller
Quoted 10 lines
From: Cong Wang <[email protected]>
Date: Thu, 01 Aug 2013 16:08:07 +0800Quoted 6 lines
Thinking about it again, what is the point of your commit commit
89bf1b5a683df497c572c4d3bd3f9c9aa919d773(net: removeNET_LL_RX_POLLconfig menue)? After that commit,CONFIG_NET_LL_RX_POLLis not visible by user and no other configs select it, also since it defaults to y, it will be _always_ enabled. If this is really what you want, we can simply remove all !CONFIG_NET_LL_RX_POLL code.
Quoted 7 lines
Quoted 2 lines
Yes we could do that, it has no dependencies which is the usual reason to have a hidden
Kconfigvar like this.I think we still need a config option that depends on net and the placeholder code.
What happens then if someone does not configure networking? Won't this break select and poll?
Good point.