drivers/net/{e1000|igc}: align descriptors to 8
A descriptor ring length must be aligned to 128, one descriptor is 16B length, so we can provide this condition with the appropriate number of descriptors Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
parent
5a9530855c
commit
bba1741421
2 changed files with 8 additions and 8 deletions
|
|
@ -48,12 +48,12 @@
|
|||
* Pre-processor Definitions
|
||||
*****************************************************************************/
|
||||
|
||||
#if CONFIG_NET_E1000_TXDESC % 2 != 0
|
||||
# error CONFIG_NET_E1000_TXDESC must be multiple of 2
|
||||
#if CONFIG_NET_E1000_TXDESC % 8 != 0
|
||||
# error CONFIG_NET_E1000_TXDESC must be multiple of 8
|
||||
#endif
|
||||
|
||||
#if CONFIG_NET_E1000_RXDESC % 2 != 0
|
||||
# error CONFIG_NET_E1000_RXDESC must be multiple of 2
|
||||
#if CONFIG_NET_E1000_RXDESC % 8 != 0
|
||||
# error CONFIG_NET_E1000_RXDESC must be multiple of 8
|
||||
#endif
|
||||
|
||||
/* Packet buffer size */
|
||||
|
|
|
|||
|
|
@ -48,12 +48,12 @@
|
|||
* Pre-processor Definitions
|
||||
*****************************************************************************/
|
||||
|
||||
#if CONFIG_NET_IGC_TXDESC % 2 != 0
|
||||
# error CONFIG_NET_IGC_TXDESC must be multiple of 2
|
||||
#if CONFIG_NET_IGC_TXDESC % 8 != 0
|
||||
# error CONFIG_NET_IGC_TXDESC must be multiple of 8
|
||||
#endif
|
||||
|
||||
#if CONFIG_NET_IGC_RXDESC % 2 != 0
|
||||
# error CONFIG_NET_IGC_RXDESC must be multiple of 2
|
||||
#if CONFIG_NET_IGC_RXDESC % 8 != 0
|
||||
# error CONFIG_NET_IGC_RXDESC must be multiple of 8
|
||||
#endif
|
||||
|
||||
/* Packet buffer size */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue