File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
drivers/net/ethernet/stmicro/stmmac Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,15 @@ static void dwmac4_clear(struct dma_desc *p)
443
443
p -> des3 = 0 ;
444
444
}
445
445
446
+ static int set_16kib_bfsize (int mtu )
447
+ {
448
+ int ret = 0 ;
449
+
450
+ if (unlikely (mtu >= BUF_SIZE_8KiB ))
451
+ ret = BUF_SIZE_16KiB ;
452
+ return ret ;
453
+ }
454
+
446
455
const struct stmmac_desc_ops dwmac4_desc_ops = {
447
456
.tx_status = dwmac4_wrback_get_tx_status ,
448
457
.rx_status = dwmac4_wrback_get_rx_status ,
@@ -469,4 +478,6 @@ const struct stmmac_desc_ops dwmac4_desc_ops = {
469
478
.clear = dwmac4_clear ,
470
479
};
471
480
472
- const struct stmmac_mode_ops dwmac4_ring_mode_ops = { };
481
+ const struct stmmac_mode_ops dwmac4_ring_mode_ops = {
482
+ .set_16kib_bfsize = set_16kib_bfsize ,
483
+ };
You can’t perform that action at this time.
0 commit comments