|
|
e88930 |
From 243332dfaa6ba856f81c8264a3d861fe7a05eb66 Mon Sep 17 00:00:00 2001
|
|
|
e88930 |
From: Manish Rangankar <manish.rangankar@cavium.com>
|
|
|
e88930 |
Date: Tue, 20 Nov 2018 00:11:16 -0500
|
|
|
e88930 |
Subject: [PATCH] qedi: Set buf_size in case of ICMP and ARP packet.
|
|
|
e88930 |
|
|
|
e88930 |
Invalid ether len was resulting into showing CRC error on wire.
|
|
|
e88930 |
|
|
|
e88930 |
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
|
|
|
e88930 |
---
|
|
|
e88930 |
iscsiuio/src/unix/nic.c | 2 ++
|
|
|
e88930 |
1 file changed, 2 insertions(+)
|
|
|
e88930 |
|
|
|
e88930 |
diff --git a/iscsiuio/src/unix/nic.c b/iscsiuio/src/unix/nic.c
|
|
|
e88930 |
index 29c4332a3162..bd415c2446bc 100644
|
|
|
e88930 |
--- a/iscsiuio/src/unix/nic.c
|
|
|
e88930 |
+++ b/iscsiuio/src/unix/nic.c
|
|
|
e88930 |
@@ -1122,6 +1122,7 @@ nic_iface_present:
|
|
|
e88930 |
* network, the global variable uip_len is
|
|
|
e88930 |
* set to a value > 0. */
|
|
|
e88930 |
if (ustack->uip_len > 0) {
|
|
|
e88930 |
+ pkt->buf_size = ustack->uip_len;
|
|
|
e88930 |
prepare_ipv4_packet(nic, nic_iface,
|
|
|
e88930 |
ustack, pkt);
|
|
|
e88930 |
|
|
|
e88930 |
@@ -1139,6 +1140,7 @@ nic_iface_present:
|
|
|
e88930 |
* network, the global variable uip_len
|
|
|
e88930 |
* is set to a value > 0. */
|
|
|
e88930 |
if (pkt->buf_size > 0) {
|
|
|
e88930 |
+ pkt->buf_size = ustack->uip_len;
|
|
|
e88930 |
LOG_DEBUG(PFX "%s: write called after arp_arpin, bufsize=%d",
|
|
|
e88930 |
nic->log_name, pkt->buf_size);
|
|
|
e88930 |
(*nic->ops->write) (nic, nic_iface, pkt);
|
|
|
e88930 |
--
|
|
|
e88930 |
2.17.2
|
|
|
e88930 |
|