Merge branch 'fix_igc_rx' into 'stable-1.6'
Fix RX descriptor writeback threshold to 1 See merge request etherlab.org/ethercat!168
This commit is contained in:
commit
ba42da8f14
|
|
@ -366,7 +366,14 @@ extern char igc_driver_name[];
|
|||
#define IGC_RX_HTHRESH 8
|
||||
#define IGC_TX_PTHRESH 8
|
||||
#define IGC_TX_HTHRESH 1
|
||||
#define IGC_RX_WTHRESH 4
|
||||
static inline int igc_get_rx_wthresh(struct igc_adapter *adapter)
|
||||
{
|
||||
if (get_ecdev(adapter)) {
|
||||
return 1;
|
||||
}
|
||||
return 4;
|
||||
}
|
||||
#define IGC_RX_WTHRESH igc_get_rx_wthresh(adapter)
|
||||
#define IGC_TX_WTHRESH 16
|
||||
|
||||
#define IGC_RX_DMA_ATTR \
|
||||
|
|
|
|||
|
|
@ -380,7 +380,14 @@ extern char igc_driver_name[];
|
|||
#define IGC_RX_HTHRESH 8
|
||||
#define IGC_TX_PTHRESH 8
|
||||
#define IGC_TX_HTHRESH 1
|
||||
#define IGC_RX_WTHRESH 4
|
||||
static inline int igc_get_rx_wthresh(struct igc_adapter *adapter)
|
||||
{
|
||||
if (get_ecdev(adapter)) {
|
||||
return 1;
|
||||
}
|
||||
return 4;
|
||||
}
|
||||
#define IGC_RX_WTHRESH igc_get_rx_wthresh(adapter)
|
||||
#define IGC_TX_WTHRESH 16
|
||||
|
||||
#define IGC_RX_DMA_ATTR \
|
||||
|
|
|
|||
|
|
@ -382,7 +382,14 @@ extern char igc_driver_name[];
|
|||
#define IGC_RX_HTHRESH 8
|
||||
#define IGC_TX_PTHRESH 8
|
||||
#define IGC_TX_HTHRESH 1
|
||||
#define IGC_RX_WTHRESH 4
|
||||
static inline int igc_get_rx_wthresh(struct igc_adapter *adapter)
|
||||
{
|
||||
if (get_ecdev(adapter)) {
|
||||
return 1;
|
||||
}
|
||||
return 4;
|
||||
}
|
||||
#define IGC_RX_WTHRESH igc_get_rx_wthresh(adapter)
|
||||
#define IGC_TX_WTHRESH 16
|
||||
|
||||
#define IGC_RX_DMA_ATTR \
|
||||
|
|
|
|||
|
|
@ -421,7 +421,14 @@ static inline u32 igc_rss_type(const union igc_adv_rx_desc *rx_desc)
|
|||
#define IGC_RX_HTHRESH 8
|
||||
#define IGC_TX_PTHRESH 8
|
||||
#define IGC_TX_HTHRESH 1
|
||||
#define IGC_RX_WTHRESH 4
|
||||
static inline int igc_get_rx_wthresh(struct igc_adapter *adapter)
|
||||
{
|
||||
if (get_ecdev(adapter)) {
|
||||
return 1;
|
||||
}
|
||||
return 4;
|
||||
}
|
||||
#define IGC_RX_WTHRESH igc_get_rx_wthresh(adapter)
|
||||
#define IGC_TX_WTHRESH 16
|
||||
|
||||
#define IGC_RX_DMA_ATTR \
|
||||
|
|
|
|||
|
|
@ -435,7 +435,14 @@ static inline u32 igc_rss_type(const union igc_adv_rx_desc *rx_desc)
|
|||
#define IGC_RX_HTHRESH 8
|
||||
#define IGC_TX_PTHRESH 8
|
||||
#define IGC_TX_HTHRESH 1
|
||||
#define IGC_RX_WTHRESH 4
|
||||
static inline int igc_get_rx_wthresh(struct igc_adapter *adapter)
|
||||
{
|
||||
if (get_ecdev(adapter)) {
|
||||
return 1;
|
||||
}
|
||||
return 4;
|
||||
}
|
||||
#define IGC_RX_WTHRESH igc_get_rx_wthresh(adapter)
|
||||
#define IGC_TX_WTHRESH 16
|
||||
|
||||
#define IGC_RX_DMA_ATTR \
|
||||
|
|
|
|||
Loading…
Reference in New Issue