ipa: Do not commit partial only headers

If only partial headers are added from inside the driver,
do not commit.

Change-Id: I7a7671fdd51d122862b0ecd2b960584d3337e0b3
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
这个提交包含在:
Ilia Lin
2021-04-22 17:01:23 +03:00
提交者 Gerrit - the friendly Code Review server
父节点 b9deeaa3dc
当前提交 8b8dd93fb7
修改 5 个文件,包含 5 行新增5 行删除

查看文件

@@ -507,7 +507,7 @@ static int ipa_eth_commit_partial_hdr(
return -EINVAL; return -EINVAL;
} }
hdr->commit = 1; hdr->commit = 0;
hdr->num_hdrs = 2; hdr->num_hdrs = 2;
snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name), snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name),

查看文件

@@ -282,7 +282,7 @@ static int ipa_gsb_commit_partial_hdr(struct ipa_gsb_iface_info *iface_info)
if (!hdr) if (!hdr)
return -ENOMEM; return -ENOMEM;
hdr->commit = 1; hdr->commit = 0;
hdr->num_hdrs = 2; hdr->num_hdrs = 2;
snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name), snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name),

查看文件

@@ -84,7 +84,7 @@ static int ipa_commit_partial_hdr(
return -EINVAL; return -EINVAL;
} }
hdr->commit = 1; hdr->commit = 0;
hdr->num_hdrs = 2; hdr->num_hdrs = 2;
snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name), snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name),

查看文件

@@ -151,7 +151,7 @@ static int ipa_wdi_commit_partial_hdr(
return -EINVAL; return -EINVAL;
} }
hdr->commit = 1; hdr->commit = 0;
hdr->num_hdrs = 2; hdr->num_hdrs = 2;
snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name), snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name),

查看文件

@@ -268,7 +268,7 @@ static int ipa_wigig_commit_partial_hdr(
hdr_info->hdr_len, hdr_info->hdr_len,
hdr_info->hdr_type); hdr_info->hdr_type);
hdr->commit = 1; hdr->commit = 0;
hdr->num_hdrs = 2; hdr->num_hdrs = 2;
snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name), snprintf(hdr->hdr[0].name, sizeof(hdr->hdr[0].name),