Re: [PATCH v2] net: thunderx: Correctly distinguish between VF and LMAC count

2015-12-08 Thread David Miller
From: Pavel Fedin Date: Tue, 08 Dec 2015 10:37:44 +0300 > Commit bc69fdfc6c13 > ("net: thunderx: Enable BGX LMAC's RX/TX only after VF is up") > introduces lmac_cnt member and starts verifying VF number against it. > This is plain wrong, and works only because currently we have hardcoded > 1:1 ma

[PATCH v2] net: thunderx: Correctly distinguish between VF and LMAC count

2015-12-07 Thread Pavel Fedin
Commit bc69fdfc6c13 ("net: thunderx: Enable BGX LMAC's RX/TX only after VF is up") introduces lmac_cnt member and starts verifying VF number against it. This is plain wrong, and works only because currently we have hardcoded 1:1 mapping between VFs and LMACs, and in this case num_vf_en and lmac_cnt