Skip to content

Commit d14584d

Browse files
venkatkumarduvvurudavem330
authored andcommitted
be2net: Add DEVSEC privilege to SET_HSW_CONFIG command.
OPCODE_COMMON_GET_FN_PRIVILEGES is returning only DEVSEC privilege (Unrestricted Administrative Privilege) for Lancer NIC functions. So, driver is failing SET_HSW_CONFIG command, as DEVSEC privilege was not set in the privilege bitmap. This patch fixes the problem by setting DEVSEC privilege in SET_HSW_CONFIG’s privilege bitmap. Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com> Signed-off-by: Suresh Reddy <suresh.reddy@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e37e2ff commit d14584d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/net/ethernet/emulex/benet/be_cmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ static struct be_cmd_priv_map cmd_priv_map[] = {
9090
{
9191
OPCODE_COMMON_SET_HSW_CONFIG,
9292
CMD_SUBSYSTEM_COMMON,
93-
BE_PRIV_DEVCFG | BE_PRIV_VHADM
93+
BE_PRIV_DEVCFG | BE_PRIV_VHADM |
94+
BE_PRIV_DEVSEC
9495
},
9596
{
9697
OPCODE_COMMON_GET_EXT_FAT_CAPABILITIES,

0 commit comments

Comments
 (0)