]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 01:05:37 +0000 (20:05 -0500)
commitdc74c13db1dc3f25ed2c6e61f07a4c742a050a8b
tree91bda57f4d0a497a16266296bd8d0fbebbbe44e7
parentea9384f31369db7f142f2b15f75a02c998062416
be2net: NCSI FW section should be properly updated with ethtool for BE3

Orabug: 25570957

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>
(cherry picked from commit f5ef017e1195d0a8c69a82bf95fea9c776b93ff0)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/emulex/benet/be_cmds.c