Re: [PATCH v2 net-next 1/4] net: implement support for low latency socket polling
flat view
From: Eliezer Tamir <hidden>
Date: 2013-05-20 09:40:07
Also in:
lkml
On 20/05/2013 10:54, David Miller wrote:
From: Eliezer Tamir <redacted> Date: Sun, 19 May 2013 13:25:33 +0300quoted
+#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)
{
return 0;
}
static inline bool sk_poll_ll(struct sock *sk, int noblock)
{
return 0;
}
static inline void skb_mark_ll(struct sk_buff *skb, struct napi_struct
*napi)
{
}
static inline voiv sk_mark_ll(struct sock *sk, struct sk_buff *skb)
{
}
would you like me to resend the whole set or just this patch?
Thanks,
Eliezer
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired