diff options
author | Vijay Khemka <vijaykhemka@fb.com> | 2018-11-26 22:49:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-28 01:37:20 +0100 |
commit | 16e8c4ca21a238cdf0355475bf15bd72e92feb8f (patch) | |
tree | 74e7c21f748520d0028dfb76fdd2c7a210e854f9 /net/ncsi/ncsi-pkt.h | |
parent | r8169: remove unneeded mmiowb barriers (diff) | |
download | linux-16e8c4ca21a238cdf0355475bf15bd72e92feb8f.tar.xz linux-16e8c4ca21a238cdf0355475bf15bd72e92feb8f.zip |
net/ncsi: Add NCSI Mellanox OEM command
This patch adds OEM Mellanox commands and response handling. It also
defines OEM Get MAC Address handler to get and configure the device.
ncsi_oem_gma_handler_mlx: This handler send NCSI mellanox command for
getting mac address.
ncsi_rsp_handler_oem_mlx: This handles response received for all
mellanox OEM commands.
ncsi_rsp_handler_oem_mlx_gma: This handles get mac address response and
set it to device.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ncsi/ncsi-pkt.h')
-rw-r--r-- | net/ncsi/ncsi-pkt.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/ncsi/ncsi-pkt.h b/net/ncsi/ncsi-pkt.h index 4d3f06be38bd..2a6d83a596c9 100644 --- a/net/ncsi/ncsi-pkt.h +++ b/net/ncsi/ncsi-pkt.h @@ -165,6 +165,15 @@ struct ncsi_rsp_oem_pkt { unsigned char data[]; /* Payload data */ }; +/* Mellanox Response Data */ +struct ncsi_rsp_oem_mlx_pkt { + unsigned char cmd_rev; /* Command Revision */ + unsigned char cmd; /* Command ID */ + unsigned char param; /* Parameter */ + unsigned char optional; /* Optional data */ + unsigned char data[]; /* Data */ +}; + /* Broadcom Response Data */ struct ncsi_rsp_oem_bcm_pkt { unsigned char ver; /* Payload Version */ |