Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84b6f745 authored by Yaniv Rosner's avatar Yaniv Rosner Committed by David S. Miller
Browse files

bnx2x: Enable `set_phys_id' for all functions



In Multi-function mode, all functions should be able to utilize said function;
There's no reason why only the link owner should be able to do so.

Signed-off-by: default avatarYaniv Rosner <yanivr@broadcom.com>
Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e68072ef
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -3146,11 +3146,6 @@ static int bnx2x_set_phys_id(struct net_device *dev,
		return -EAGAIN;
		return -EAGAIN;
	}
	}


	if (!bp->port.pmf) {
		DP(BNX2X_MSG_ETHTOOL, "Interface is not pmf\n");
		return -EOPNOTSUPP;
	}

	switch (state) {
	switch (state) {
	case ETHTOOL_ID_ACTIVE:
	case ETHTOOL_ID_ACTIVE:
		return 1;	/* cycle on/off once per second */
		return 1;	/* cycle on/off once per second */