net/tap: simplify netlink send/receive functions
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 24 Apr 2020 23:36:56 +0000 (16:36 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commit6d81801d842d984dac2325893e9f430885893959
treecd727eadd0e77c403de0e5dc8fcc9a80353b8a83
parent8451387df206f5ad34461280ab6a2e5bfe382b9b
net/tap: simplify netlink send/receive functions

The tap_nl_recv() function does not need to use the full
complex recvmsg() system call, basic recv() will work here.

Ditto for tap_nl_send() full sendmsg is not needed.

Add logic to retry in case EINTR rather than forcing
error handling back in driver or worse to ethdev API.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/tap_netlink.c