X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fatlantic%2Fhw_atl%2Fhw_atl_b0.c;h=7d0e72401937396bd5ac37082e7911af127f9451;hb=305d1fd39ab02bf86c211528971689e52555ff45;hp=53fd8e9f02371a31ac614b05bb67d1193b052b64;hpb=1da02f4ebe1ddfaf9adbe0fdf43288b20596b43f;p=dpdk.git diff --git a/drivers/net/atlantic/hw_atl/hw_atl_b0.c b/drivers/net/atlantic/hw_atl/hw_atl_b0.c index 53fd8e9f02..7d0e724019 100644 --- a/drivers/net/atlantic/hw_atl/hw_atl_b0.c +++ b/drivers/net/atlantic/hw_atl/hw_atl_b0.c @@ -26,6 +26,12 @@ int hw_atl_b0_hw_reset(struct aq_hw_s *self) return err; } +int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) +{ + hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); + return 0; +} + static int hw_atl_b0_hw_qos_set(struct aq_hw_s *self) { u32 tc = 0U; @@ -286,6 +292,8 @@ int hw_atl_b0_hw_init_rx_path(struct aq_hw_s *self) hw_atl_rpfl2broadcast_flr_act_set(self, 1U); hw_atl_rpfl2broadcast_count_threshold_set(self, 0xFFFFU & (~0U / 256U)); + hw_atl_rpfl2broadcast_en_set(self, 1U); + hw_atl_rdm_rx_dca_en_set(self, 0U); hw_atl_rdm_rx_dca_mode_set(self, 0U); @@ -503,4 +511,3 @@ int hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self, int index) hw_atl_rdm_rx_desc_en_set(self, 0U, index); return aq_hw_err_from_flags(self); } -