Commit d15ec193 authored by Alex Elder's avatar Alex Elder Committed by David S. Miller

Revert "net: ipa: disable checksum offload for IPA v4.5+"

This reverts commit c88c34fc.

The RMNet driver now supports inline checksum offload.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5567d4d9
...@@ -88,11 +88,6 @@ static bool ipa_endpoint_data_valid_one(struct ipa *ipa, u32 count, ...@@ -88,11 +88,6 @@ static bool ipa_endpoint_data_valid_one(struct ipa *ipa, u32 count,
if (ipa_gsi_endpoint_data_empty(data)) if (ipa_gsi_endpoint_data_empty(data))
return true; 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->toward_ipa) {
if (data->endpoint.filter_support) { if (data->endpoint.filter_support) {
dev_err(dev, "filtering not supported for " dev_err(dev, "filtering not supported for "
...@@ -235,17 +230,6 @@ static bool ipa_endpoint_data_valid(struct ipa *ipa, u32 count, ...@@ -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, static bool ipa_endpoint_data_valid(struct ipa *ipa, u32 count,
const struct ipa_gsi_endpoint_data *data) 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; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment