net/sfc/base: update external port number calculation
authorRichard Houldsworth <rhouldsworth@solarflare.com>
Thu, 7 Feb 2019 16:29:07 +0000 (16:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Feb 2019 10:32:42 +0000 (11:32 +0100)
commitfc3c5bbd05f6732b29cbec16ed089cf6b9c9c46c
tree8e2451d2755335086ecc97db5a2a39f88ec42258
parent2373aafb4358407307f75d6831046264bcfbe750
net/sfc/base: update external port number calculation

Revise the external port calculation to support all
X2 port modes. The previous algorithm could not
handle different port numbering schemes on each cage.

Signed-off-by: Richard Houldsworth <rhouldsworth@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_nic.c