Skip to contentSkip to conversation

net/xsc: add ioctl command interface

PATCH Superseded WanRenyong 1 participant 1 message Sep 6, 2024

Subsystems (2)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

WanRenyong

author
#0 lore raw

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.

---
 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
index 96b4e59ac4..5c989dba13 100644
@@ -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