]> git.baikalelectronics.ru Git - kernel.git/commit
net: Only define skb_mark_napi_id in one spot instead of two
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 24 Mar 2017 17:08:06 +0000 (10:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Mar 2017 03:49:30 +0000 (20:49 -0700)
commit20f5a7607c2834294fb4bdd9856f7a42d74b6041
tree4585674400a510effc25463543b67f101dd31e34
parentd7fa7c4367e97306fdf4242393828819c7fb657f
net: Only define skb_mark_napi_id in one spot instead of two

Instead of defining two versions of skb_mark_napi_id I think it is more
readable to just match the format of the sk_mark_napi_id functions and just
wrap the contents of the function instead of defining two versions of the
function.  This way we can save a few lines of code since we only need 2 of
the ifdef/endif but needed 5 for the extra function declaration.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/busy_poll.h