nfp: move repr handling on RX path
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 26 Jul 2018 02:53:30 +0000 (19:53 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 27 Jul 2018 05:14:35 +0000 (07:14 +0200)
commit78a8b760e40881c883c5552db991664727a91868
tree5e0090a5dae2cae69954f822ed5f6fae7a9bab75
parent9778cfdfc9d94396d1464630073d696cdea84037
nfp: move repr handling on RX path

Representor packets are received on PF queues with special metadata tag
for demux.  There is no reason to resolve the representor ID -> netdev
after the skb has been allocated.  Move the code, this will allow us to
handle special FW messages without SKB allocation overhead.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c