]> git.karo-electronics.de Git - linux-beck.git/commit
be2net: NCSI FW section should be properly updated with ethtool for BE3
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Sun, 9 Oct 2016 04:28:50 +0000 (09:58 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Oct 2016 13:30:38 +0000 (09:30 -0400)
commitf5ef017e1195d0a8c69a82bf95fea9c776b93ff0
tree66c60256b855392644e5147eee6b46f259ff458f
parent6ee080bb09889dc0195a9c659288d17999237fb6
be2net: NCSI FW section should be properly updated with ethtool for BE3

The driver has a check to ensure that NCSI FW section is updated only
if the current FW version in the card supports it. This FW version check
is done using memcmp() which obviously fails in some cases. Fix this by
breaking up the version string into integer version components and
comparing them.

Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c