Thread (20 messages) 20 messages, 8 authors, 2013-05-21

Re: [PATCH v2 net-next 1/4] net: implement support for low latency socket polling

flat view

From: David Miller <davem@davemloft.net>
Date: 2013-05-20 19:34:43
Also in: lkml

From: Eliezer Tamir <redacted>
Date: Mon, 20 May 2013 12:39:59 +0300
On 20/05/2013 10:54, David Miller wrote:
quoted
From: Eliezer Tamir <redacted>
Date: Sun, 19 May 2013 13:25:33 +0300
quoted
+#else /* CONFIG_INET_LL_RX_FLUSH */
+
+#define sk_valid_ll(sk) 0
+#define sk_poll_ll(sk, nonblock) do {} while (0)
+#define skb_mark_ll(napi, skb) do {} while (0)
+#define sk_mark_ll(sk, skb) do {} while (0)
Make these inline functions too, so that even if
CONFIG_INET_LL_RX_POLL is disabled, the arguments and return values
are still properly type checked.
Is this what you had in mind?

static inline bool sk_valid_ll(struct sock *sk)
Yes.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help