nfp: advertise support for NFD ABI 0.5
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 6 Jun 2017 00:01:57 +0000 (17:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2017 16:51:42 +0000 (12:51 -0400)
NFD ABI 0.5 is equivalent to NFD ABI 3.0 but requires that the
driver checks the APP id symbol and makes sure it can support
given app.  Most advanced apps will likely require control vNIC
(ability to exchange control messages between the driver and
app FW).  Detailed app version checking and capability exchange
is left to app-specific code.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_main.c
drivers/net/ethernet/netronome/nfp/nfp_netvf_main.c

index db12700b5afc3e7a0807d2946f1af9fa42e9c849..5f27703060c242b0b2d49f49dce0a72b49b48a50 100644 (file)
@@ -749,7 +749,7 @@ int nfp_net_pci_probe(struct nfp_pf *pf)
                nfp_warn(pf->cpp, "OBSOLETE Firmware detected - VF isolation not available\n");
        } else {
                switch (fw_ver.major) {
-               case 1 ... 4:
+               case 1 ... 5:
                        stride = 4;
                        break;
                default:
index 0bf3b0febd07f8f77c4be7a748160370ca56a09e..c879626e035b445568b669af78ef105bd9346d0f 100644 (file)
@@ -161,7 +161,7 @@ static int nfp_netvf_pci_probe(struct pci_dev *pdev,
                dev_warn(&pdev->dev, "OBSOLETE Firmware detected - VF isolation not available\n");
        } else {
                switch (fw_ver.major) {
-               case 1 ... 4:
+               case 1 ... 5:
                        stride = 4;
                        tx_bar_no = NFP_NET_Q0_BAR;
                        rx_bar_no = tx_bar_no;