]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: IEEE fixes for DCBx state machine
authorAnish Bhatt <anish@chelsio.com>
Thu, 7 Aug 2014 23:14:03 +0000 (16:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Aug 2014 23:18:55 +0000 (16:18 -0700)
commit6fec0aa8b455830101b3d1601ba328f78837c7bc
tree9701e13839a8cb4289eb6fbf404373f5b39009e0
parent65d96ea4d2888c0fb083ac2645fd693b98546833
cxgb4: IEEE fixes for DCBx state machine

* Changes required due to 0e4aa142635e1 ("dcbnl : Fix misleading
  dcb_app->priority explanation")
* Driver was previously not aware of what DCBx version was negotiated by
  firmware, this could lead to DCB app table  in kernel or in firmware being
  populated wrong  since IEEE/CEE used different formats made clear by above
  mentioned commit
* Driver was missing a couple of state transitions that could be caused
  by other drivers that use chelsio hardware, resulting in incorrect behaviour
  (the change that addresses this also flips the state machine to switch on
   state instead of transition, hope this is okay in current window)
* Prio queue info & tsa is no longer thrown away

v2: Print DCBx state transition messages only when debug is enabled

Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h