]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7a1daca3d586456cd340abeeafa8d7d370ad265
tree9043c031db7562f7d4edaf2f704fe79d1ad812c7
parentffc32f12d6a52b6433f0648f90e47caffa27ce22
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