net: Introduce SO_INCOMING_NAPI_ID

This socket option returns the NAPI ID associated with the queue on which
the last frame is received. This information can be used by the apps to
split the incoming flows among the threads based on the Rx queue on which
they are received.

If the NAPI ID actually represents a sender_cpu then the value is ignored
and 0 is returned.

Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
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>
此提交包含在:
Sridhar Samudrala
2017-03-24 10:08:36 -07:00
提交者 David S. Miller
父節點 bf3b9f6372
當前提交 6d4339028b
共有 14 個檔案被更改,包括 37 行新增0 行删除

查看文件

@@ -94,4 +94,6 @@
#define SO_MEMINFO 55
#define SO_INCOMING_NAPI_ID 56
#endif /* _ASM_M32R_SOCKET_H */