Skip to content

Commit a55e16f

Browse files
mfijalkoanguy11
authored andcommitted
ice: do not create xdp_frame on XDP_TX
xdp_frame is not needed for XDP_TX data path in ice driver case. For this data path cleaning of sent descriptor will not happen anywhere outside of the driver, which means that carrying the information about the underlying memory model via xdp_frame will not be used. Therefore, this conversion can be simply dropped, which would relieve CPU a bit. Signed-off-by: Maciej Fijalkowski <[email protected]> Tested-by: George Kuruvinakunnel <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 0bb4f9e commit a55e16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ice/ice_txrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ ice_run_xdp(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp,
554554
return ICE_XDP_PASS;
555555
case XDP_TX:
556556
xdp_ring = rx_ring->vsi->xdp_rings[smp_processor_id()];
557-
result = ice_xmit_xdp_buff(xdp, xdp_ring);
557+
result = ice_xmit_xdp_ring(xdp->data, xdp->data_end - xdp->data, xdp_ring);
558558
if (result == ICE_XDP_CONSUMED)
559559
goto out_failure;
560560
return result;

0 commit comments

Comments
 (0)