Inline offload--required for checksum offload support on IPA version
4.5 and above--is now supported by the RMNet driver:
https://lore.kernel.org/netdev/162259440606.2786.10278242816453240434.git-patchwork-notify@kernel.org/
Add support for it in the IPA driver, and revert the commit that
disabled it pending acceptance of the RMNet code.
-Alex
Alex Elder (2):
net: ipa: add support for inline checksum offload
Revert "net: ipa: disable checksum offload for IPA v4.5+"
drivers/net/ipa/ipa_endpoint.c | 63 +++++++++++++++++++---------------
drivers/net/ipa/ipa_reg.h | 1 +
2 files changed, 37 insertions(+), 27 deletions(-)
--
2.27.0
This reverts commit c88c34fcf8f501d588c0a999aa7e51e18552c5f0.
The RMNet driver now supports inline checksum offload.
Signed-off-by: Alex Elder <[email protected]>
---
drivers/net/ipa/ipa_endpoint.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c
index 03719fb6a15a4..07a81b73306fe 100644
--- a/drivers/net/ipa/ipa_endpoint.c
+++ b/drivers/net/ipa/ipa_endpoint.c
@@ -88,11 +88,6 @@ static bool ipa_endpoint_data_valid_one(struct ipa *ipa, u32 count,
if (ipa_gsi_endpoint_data_empty(data))
return true;
- /* IPA v4.5+ uses checksum offload, not yet supported by RMNet */
- if (ipa->version >= IPA_VERSION_4_5)
- if (data->endpoint.config.checksum)
- return false;
-
if (!data->toward_ipa) {
if (data->endpoint.filter_support) {
dev_err(dev, "filtering not supported for "
@@ -235,17 +230,6 @@ static bool ipa_endpoint_data_valid(struct ipa *ipa, u32 count,
static bool ipa_endpoint_data_valid(struct ipa *ipa, u32 count,
const struct ipa_gsi_endpoint_data *data)
{
- const struct ipa_gsi_endpoint_data *dp = data;
- enum ipa_endpoint_name name;
-
- if (ipa->version < IPA_VERSION_4_5)
- return true;
-
- /* IPA v4.5+ uses checksum offload, not yet supported by RMNet */
- for (name = 0; name < count; name++, dp++)
- if (data->endpoint.config.checksum)
- return false;
-
return true;
}
--
2.27.0
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
On Wed, 2 Jun 2021 07:41:29 -0500 you wrote:
> Inline offload--required for checksum offload support on IPA version
> 4.5 and above--is now supported by the RMNet driver:
> https://lore.kernel.org/netdev/162259440606.2786.10278242816453240434.git-patchwork-notify@kernel.org/
>
> Add support for it in the IPA driver, and revert the commit that
> disabled it pending acceptance of the RMNet code.
>
> [...]
Here is the summary with links:
- [net-next,1/2] net: ipa: add support for inline checksum offload
https://git.kernel.org/netdev/net-next/c/5567d4d9e738
- [net-next,2/2] Revert "net: ipa: disable checksum offload for IPA v4.5+"
https://git.kernel.org/netdev/net-next/c/d15ec1933309
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html