From: Venkat Duvvuru Date: Tue, 6 Dec 2016 05:33:50 +0000 (-0500) Subject: be2net: Add DEVSEC privilege to SET_HSW_CONFIG command. X-Git-Tag: v4.1.12-98.0.20170517_2143~42^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ee95e422c8b03b70dead3f89b2b8a7cb2a3b0a0b;p=users%2Fjedix%2Flinux-maple.git be2net: Add DEVSEC privilege to SET_HSW_CONFIG command. Orabug: 25570957 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 Signed-off-by: Suresh Reddy Signed-off-by: David S. Miller (cherry picked from commit d14584d91976c42c7178164665c4959495740939) Signed-off-by: Brian Maly Signed-off-by: Dhaval Giani --- diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index a0a9429d06fd..7337ac4c19aa 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c @@ -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,