net/xsc: add ioctl command interface
Subsystems (2)
PATCH 5/19 net/xsc: add ioctl command interface
IOCTL command interface is one of methods used to interact with firmware by PMD. By using ioctl interface, PMD sends command to the kernel module, then the kernel module translates the command and sends it to firmware, at last, the kernel module send back PDM the result from firmware.
Signed-off-by WanRenyong <[email protected]>
--- drivers/net/xsc/meson.build | 1 + drivers/net/xsc/xsc_ctrl.c | 56 ++++++++++++++++++++++++ drivers/net/xsc/xsc_ctrl.h | 86 +++++++++++++++++++++++++++++++++++++ 3 files changed, 143 insertions(+) create mode 100644 drivers/net/xsc/xsc_ctrl.c create mode 100644 drivers/net/xsc/xsc_ctrl.h
drivers/net/xsc/meson.build +1 -0
@@ -10,6 +10,7 @@ sources = files( 'xsc_ethdev.c', 'xsc_dev.c', 'xsc_utils.c', + 'xsc_ctrl.c', ) libnames = ['ibverbs']
drivers/net/xsc/xsc_ctrl.c new file +56 -0
56 lines not on this page · raw message
drivers/net/xsc/xsc_ctrl.h new file +86 -0
86 lines not on this page · raw message
Signature · 1 line
2.25.1