veth: factor out initialization helper
authorPaolo Abeni <pabeni@redhat.com>
Tue, 20 Jul 2021 08:41:49 +0000 (10:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2021 13:11:18 +0000 (06:11 -0700)
commitdedd53c5e075e4277f2a01c6d78318ac16e645c3
tree9043c031db7562f7d4edaf2f704fe79d1ad812c7
parentf7918b79019f13ece815b2a88bab12974793aed1
veth: factor out initialization helper

Extract in simpler helpers the code to enable and disable a
range of xdp/napi instance, with the common property that
"disable" helpers can't fail.

Will be used by the next patch. No functional change intended.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c