net: Update RFS target at poll for tcp/udp
authorDavid Majnemer <[email protected]>
Fri, 31 May 2013 13:15:38 +0000 (13:15 +0000)
committerDavid S. Miller <[email protected]>
Fri, 31 May 2013 23:24:43 +0000 (16:24 -0700)
commitc3f1dbaf6e281642848b78fe101764170c15f168
treed7cde019621827feae6b138f451876fa1aef6817
parentaef6de511a2aea78098e0d507ad7280d38b6b019
net: Update RFS target at poll for tcp/udp

The current state of affairs is that read()/write() will setup
RFS (Receive Flow Steering) for internet protocol sockets while
poll()/epoll() does not.

When poll() gets called with a TCP or UDP socket, we should update
the flow target.

This permits to RFS (if enabled) to select the appropriate CPU for
following incoming packets.

Note: Only connected UDP sockets can benefit from RFS.

Signed-off-by: David Majnemer <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Paul Turner <[email protected]>
Cc: Tom Herbert <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/tcp.c
net/ipv4/udp.c