Commit 163f5de5 authored by Ivan Mikhaylov's avatar Ivan Mikhaylov Committed by David S. Miller

net/ncsi: add dummy response handler for Intel boards

Add the dummy response handler for Intel boards to prevent incorrect
handling of OEM commands.
Signed-off-by: default avatarIvan Mikhaylov <i.mikhaylov@yadro.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent abd2fddc
...@@ -699,12 +699,19 @@ static int ncsi_rsp_handler_oem_bcm(struct ncsi_request *nr) ...@@ -699,12 +699,19 @@ static int ncsi_rsp_handler_oem_bcm(struct ncsi_request *nr)
return 0; return 0;
} }
/* Response handler for Intel card */
static int ncsi_rsp_handler_oem_intel(struct ncsi_request *nr)
{
return 0;
}
static struct ncsi_rsp_oem_handler { static struct ncsi_rsp_oem_handler {
unsigned int mfr_id; unsigned int mfr_id;
int (*handler)(struct ncsi_request *nr); int (*handler)(struct ncsi_request *nr);
} ncsi_rsp_oem_handlers[] = { } ncsi_rsp_oem_handlers[] = {
{ NCSI_OEM_MFR_MLX_ID, ncsi_rsp_handler_oem_mlx }, { NCSI_OEM_MFR_MLX_ID, ncsi_rsp_handler_oem_mlx },
{ NCSI_OEM_MFR_BCM_ID, ncsi_rsp_handler_oem_bcm } { NCSI_OEM_MFR_BCM_ID, ncsi_rsp_handler_oem_bcm },
{ NCSI_OEM_MFR_INTEL_ID, ncsi_rsp_handler_oem_intel }
}; };
/* Response handler for OEM command */ /* Response handler for OEM command */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment