[PATCH] net: thunderx: Remove unnecessary struct nicpf::lmac_cnt

2015-12-04 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 num_vf_en and lmac_cnt are always

Re: [PATCH] net: thunderx: Remove unnecessary struct nicpf::lmac_cnt

2015-12-04 Thread Sunil Kovvuri
>num_vf_en and lmac_cnt are always equal.However in future this may change. Yes these two won't be equal in future and hence a differentiation is needed. lmac_cnt will have to point to no of physical interfaces and num_vf_en to logical interfaces. num_vf_en will default to lmac_cnt but with