summaryrefslogtreecommitdiffstats
path: root/libs/Network/init.c
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-05-29 22:18:38 -0600
committerEvan Lojewski <github@meklort.com>2019-05-29 22:18:38 -0600
commita70db0191841f43b6453cc395a22e68f8cb365db (patch)
tree1234bbf13111878278e6cef87e797f1ea15cdbe9 /libs/Network/init.c
parent2ff175cbf6d3d4be9ff1e05f89020f6516bcc18a (diff)
downloadbcm5719-ortega-a70db0191841f43b6453cc395a22e68f8cb365db.tar.gz
bcm5719-ortega-a70db0191841f43b6453cc395a22e68f8cb365db.zip
Fix a null pointer dereference when initializing the network ports.
Diffstat (limited to 'libs/Network/init.c')
-rw-r--r--libs/Network/init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/Network/init.c b/libs/Network/init.c
index bab401f..5b3bf2d 100644
--- a/libs/Network/init.c
+++ b/libs/Network/init.c
@@ -645,40 +645,48 @@ NetworkPort_t gPort0 = {
.tx_port = &TX_PORT0,
.tx_allocator = &APE.TxToNetBufferAllocator0,
.tx_doorbell = &APE.TxToNetDoorbellFunc0,
+ .tx_mode = &APE.TxToNetPoolModeStatus0,
.rx_port = &RX_PORT0,
.rx_offset = &APE.RxbufoffsetFunc0,
.rx_retire = &APE.RxPoolRetire0,
+ .rx_mode = &APE.RxPoolModeStatus0,
};
NetworkPort_t gPort1 = {
.tx_port = &TX_PORT1,
.tx_allocator = &APE.TxToNetBufferAllocator1,
.tx_doorbell = &APE.TxToNetDoorbellFunc1,
+ .tx_mode = &APE.TxToNetPoolModeStatus1,
.rx_port = &RX_PORT1,
.rx_offset = &APE.RxbufoffsetFunc1,
.rx_retire = &APE.RxPoolRetire1,
+ .rx_mode = &APE.RxPoolModeStatus1,
};
NetworkPort_t gPort2 = {
.tx_port = &TX_PORT2,
.tx_allocator = &APE.TxToNetBufferAllocator2,
.tx_doorbell = &APE.TxToNetDoorbellFunc2,
+ .tx_mode = &APE.TxToNetPoolModeStatus2,
.rx_port = &RX_PORT2,
.rx_offset = &APE.RxbufoffsetFunc2,
.rx_retire = &APE.RxPoolRetire2,
+ .rx_mode = &APE.RxPoolModeStatus2,
};
NetworkPort_t gPort3 = {
.tx_port = &TX_PORT3,
.tx_allocator = &APE.TxToNetBufferAllocator3,
.tx_doorbell = &APE.TxToNetDoorbellFunc3,
+ .tx_mode = &APE.TxToNetPoolModeStatus3,
.rx_port = &RX_PORT3,
.rx_offset = &APE.RxbufoffsetFunc3,
.rx_retire = &APE.RxPoolRetire3,
+ .rx_mode = &APE.RxPoolModeStatus3,
};
OpenPOWER on IntegriCloud