Searched hist:e1ed4f92a6256ec11445de51c2b5a7d89289f8d1 (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_ptp.c | diff e1ed4f92a6256ec11445de51c2b5a7d89289f8d1 Wed Mar 10 01:13:18 CST 2021 Andre Guedes <andre.guedes@intel.com> igc: Refactor Rx timestamp handling
Refactor the Rx timestamp handling in preparation to land XDP support.
Rx timestamps are put in the Rx buffer by hardware, before the packet data. When creating the xdp buffer, we will need to check the Rx descriptor to determine if the buffer contains timestamp information and consider the offset when setting xdp.data.
The Rx descriptor check is already done in igc_construct_skb(). To avoid code duplication, this patch moves the timestamp handling to igc_clean_rx_irq() so both skb and xdp paths can reuse it.
Signed-off-by: Andre Guedes <andre.guedes@intel.com> Signed-off-by: Vedang Patel <vedang.patel@intel.com> Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
|
H A D | igc.h | diff e1ed4f92a6256ec11445de51c2b5a7d89289f8d1 Wed Mar 10 01:13:18 CST 2021 Andre Guedes <andre.guedes@intel.com> igc: Refactor Rx timestamp handling
Refactor the Rx timestamp handling in preparation to land XDP support.
Rx timestamps are put in the Rx buffer by hardware, before the packet data. When creating the xdp buffer, we will need to check the Rx descriptor to determine if the buffer contains timestamp information and consider the offset when setting xdp.data.
The Rx descriptor check is already done in igc_construct_skb(). To avoid code duplication, this patch moves the timestamp handling to igc_clean_rx_irq() so both skb and xdp paths can reuse it.
Signed-off-by: Andre Guedes <andre.guedes@intel.com> Signed-off-by: Vedang Patel <vedang.patel@intel.com> Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
|
H A D | igc_main.c | diff e1ed4f92a6256ec11445de51c2b5a7d89289f8d1 Wed Mar 10 01:13:18 CST 2021 Andre Guedes <andre.guedes@intel.com> igc: Refactor Rx timestamp handling
Refactor the Rx timestamp handling in preparation to land XDP support.
Rx timestamps are put in the Rx buffer by hardware, before the packet data. When creating the xdp buffer, we will need to check the Rx descriptor to determine if the buffer contains timestamp information and consider the offset when setting xdp.data.
The Rx descriptor check is already done in igc_construct_skb(). To avoid code duplication, this patch moves the timestamp handling to igc_clean_rx_irq() so both skb and xdp paths can reuse it.
Signed-off-by: Andre Guedes <andre.guedes@intel.com> Signed-off-by: Vedang Patel <vedang.patel@intel.com> Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
|