@@ -5181,12 +5181,11 @@ int ixgbe_setup_tx_resources(struct ixgbe_ring *tx_ring)
51815181 int size ;
51825182
51835183 size = sizeof (struct ixgbe_tx_buffer ) * tx_ring -> count ;
5184- tx_ring -> tx_buffer_info = vmalloc_node (size , tx_ring -> numa_node );
5184+ tx_ring -> tx_buffer_info = vzalloc_node (size , tx_ring -> numa_node );
51855185 if (!tx_ring -> tx_buffer_info )
5186- tx_ring -> tx_buffer_info = vmalloc (size );
5186+ tx_ring -> tx_buffer_info = vzalloc (size );
51875187 if (!tx_ring -> tx_buffer_info )
51885188 goto err ;
5189- memset (tx_ring -> tx_buffer_info , 0 , size );
51905189
51915190 /* round up to nearest 4K */
51925191 tx_ring -> size = tx_ring -> count * sizeof (union ixgbe_adv_tx_desc );
@@ -5246,12 +5245,11 @@ int ixgbe_setup_rx_resources(struct ixgbe_ring *rx_ring)
52465245 int size ;
52475246
52485247 size = sizeof (struct ixgbe_rx_buffer ) * rx_ring -> count ;
5249- rx_ring -> rx_buffer_info = vmalloc_node (size , rx_ring -> numa_node );
5248+ rx_ring -> rx_buffer_info = vzalloc_node (size , rx_ring -> numa_node );
52505249 if (!rx_ring -> rx_buffer_info )
5251- rx_ring -> rx_buffer_info = vmalloc (size );
5250+ rx_ring -> rx_buffer_info = vzalloc (size );
52525251 if (!rx_ring -> rx_buffer_info )
52535252 goto err ;
5254- memset (rx_ring -> rx_buffer_info , 0 , size );
52555253
52565254 /* Round up to nearest 4K */
52575255 rx_ring -> size = rx_ring -> count * sizeof (union ixgbe_adv_rx_desc );
0 commit comments