]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'netdevsim-device-and-bus'
authorDavid S. Miller <davem@davemloft.net>
Mon, 1 Nov 2021 13:29:41 +0000 (13:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Nov 2021 13:29:41 +0000 (13:29 +0000)
commit722402c6443cb6a4d205e325133349f6ecf1ba8a
tree4b3eab1c6072ad3212bda7e09d58b23e36d4ec91
parent311b8cd8198294cd1cabd7d23d71f9c23c9e1070
parentfc8db75d4f72b38d7e268fe231708dc974b772b1
Merge branch 'netdevsim-device-and-bus'

Jakub Kicinski says:

====================
netdevsim: improve separation between device and bus

VF config falls strangely in between device and bus
responsibilities today. Because of this bus.c sticks fingers
directly into struct nsim_dev and we look at nsim_bus_dev
in many more places than necessary.

Make bus.c contain pure interface code, and move
the particulars of the logic (which touch on eswitch,
devlink reloads etc) to dev.c. Rename the functions
at the boundary of the interface to make the separation
clearer.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>