be2net: Add DEVSEC privilege to SET_HSW_CONFIG command.
authorVenkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Tue, 6 Dec 2016 05:33:50 +0000 (00:33 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 16:39:41 +0000 (11:39 -0500)
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>
drivers/net/ethernet/emulex/benet/be_cmds.c

index 1fb5d72392547dcbc116fabe0fa9699de5e9c304..0e74529a42095b311c97dc367c2ba3b20bdfc27c 100644 (file)
@@ -90,7 +90,8 @@ static struct be_cmd_priv_map cmd_priv_map[] = {
        {
                OPCODE_COMMON_SET_HSW_CONFIG,
                CMD_SUBSYSTEM_COMMON,
-               BE_PRIV_DEVCFG | BE_PRIV_VHADM
+               BE_PRIV_DEVCFG | BE_PRIV_VHADM |
+               BE_PRIV_DEVSEC
        },
        {
                OPCODE_COMMON_GET_EXT_FAT_CAPABILITIES,