git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice/base: implement shared rate limiter
[dpdk.git]
/
drivers
/
net
/
atlantic
/
hw_atl
/
hw_atl_b0.c
diff --git
a/drivers/net/atlantic/hw_atl/hw_atl_b0.c
b/drivers/net/atlantic/hw_atl/hw_atl_b0.c
index
03b1a64
..
7d0e724
100644
(file)
--- 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;
}
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;
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_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);
hw_atl_rdm_rx_dca_en_set(self, 0U);
hw_atl_rdm_rx_dca_mode_set(self, 0U);