Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2b683d1 authored by Jinesh K. Jayakumar's avatar Jinesh K. Jayakumar Committed by Gerrit - the friendly Code Review server
Browse files

net: aquantia: Enable support for IPA LAN Rx in NAPI poll



Enable support in Aquantia forwarding driver to receive IPA LAN Rx
packets from within NAPI poll context.

Change-Id: I686ec9864290525aa61b2dac0ffb7951eb0967ee
Signed-off-by: default avatarJinesh K. Jayakumar <jineshk@codeaurora.org>
parent 4f9559a8
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
/* Copyright (c) 2019 The Linux Foundation. All rights reserved.
/* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -442,11 +442,21 @@ int atl_ipa_moderate_event(struct ipa_eth_channel *ch, unsigned long event,
	return atl_fwd_set_ring_intr_mod(CH_RING(ch), min_usecs, max_usecs);
}

#if IPA_ETH_API_VER >= 7
static int atl_ipa_receive_skb(struct ipa_eth_device *eth_dev,
			       struct sk_buff *skb, bool in_napi)
{
	return in_napi ?
		atl_fwd_napi_receive_skb(eth_dev->net_dev, skb) :
		atl_fwd_receive_skb(eth_dev->net_dev, skb);
}
#else
static int atl_ipa_receive_skb(struct ipa_eth_device *eth_dev,
			       struct sk_buff *skb)
{
	return atl_fwd_receive_skb(eth_dev->net_dev, skb);
}
#endif

static int atl_ipa_transmit_skb(struct ipa_eth_device *eth_dev,
				struct sk_buff *skb)