Searched hist:"9 fe00c800ecd667acb7748cab7fcd3068c58498a" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | ef100_rep.h | diff 9fe00c800ecd667acb7748cab7fcd3068c58498a Thu Jul 28 13:57:45 CDT 2022 Edward Cree <ecree.xilinx@gmail.com> sfc: ef100 representor RX top half
Representor RX uses a NAPI context driven by a 'fake interrupt': when the parent PF receives a packet destined for the representor, it adds it to an SKB list (efv->rx_list), and schedules NAPI if the 'fake interrupt' is primed. The NAPI poll then pulls packets off this list and feeds them to the stack with netif_receive_skb_list(). This scheme allows us to decouple representor RX from the parent PF's RX fast-path. This patch implements the 'top half', which builds an SKB, copies data into it from the RX buffer (which can then be released), adds it to the queue and fires the 'fake interrupt' if necessary.
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
H A D | ef100_rep.c | diff 9fe00c800ecd667acb7748cab7fcd3068c58498a Thu Jul 28 13:57:45 CDT 2022 Edward Cree <ecree.xilinx@gmail.com> sfc: ef100 representor RX top half
Representor RX uses a NAPI context driven by a 'fake interrupt': when the parent PF receives a packet destined for the representor, it adds it to an SKB list (efv->rx_list), and schedules NAPI if the 'fake interrupt' is primed. The NAPI poll then pulls packets off this list and feeds them to the stack with netif_receive_skb_list(). This scheme allows us to decouple representor RX from the parent PF's RX fast-path. This patch implements the 'top half', which builds an SKB, copies data into it from the RX buffer (which can then be released), adds it to the queue and fires the 'fake interrupt' if necessary.
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|