summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Peim <mpeim@cisco.com>2024-02-12 10:08:03 +0100
committerOle Tr�an <otroan@employees.org>2024-03-04 11:30:24 +0000
commit2cc14de7ebe232f99673ef68c2ed5f2f2680754f (patch)
tree0cc005d4601d879a0f8c13d55ad6d848f2914ab6
parent5be4b869a450530052f31e3325dfcfee49ac2178 (diff)
misc: fix icmp
- fix ICMPv6 lookup FIB (don't reset sw_if_index[VLIB_TX] to -1) - add locally generated flag in ICMPv4 buffers (reflect ICMPv6) Type: fix Change-Id: If25a176a9952cbe185a030f8b136718af1bff9e8 Signed-off-by: Maxime Peim <mpeim@cisco.com>
-rw-r--r--src/vnet/ip/icmp4.c1
-rw-r--r--src/vnet/ip/icmp6.c1
-rw-r--r--test/test_map.py4
-rw-r--r--test/test_mtu.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/ip/icmp4.c b/src/vnet/ip/icmp4.c
index 7dc21c53df1..e9909bf16d9 100644
--- a/src/vnet/ip/icmp4.c
+++ b/src/vnet/ip/icmp4.c
@@ -325,6 +325,7 @@ ip4_icmp_error (vlib_main_t * vm,
-sizeof (ip4_header_t) -
sizeof (icmp46_header_t) - 4);
+ p0->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
p0->current_length =
p0->current_length > 576 ? 576 : p0->current_length;
out_ip0 = vlib_buffer_get_current (p0);
diff --git a/src/vnet/ip/icmp6.c b/src/vnet/ip/icmp6.c
index 8d95e48b269..184fce6b377 100644
--- a/src/vnet/ip/icmp6.c
+++ b/src/vnet/ip/icmp6.c
@@ -366,7 +366,6 @@ ip6_icmp_error (vlib_main_t * vm,
-(sizeof (ip6_header_t) +
sizeof (icmp46_header_t) + 4));
- vnet_buffer (p0)->sw_if_index[VLIB_TX] = ~0;
p0->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
p0->current_length =
p0->current_length > 1280 ? 1280 : p0->current_length;
diff --git a/test/test_map.py b/test/test_map.py
index 19e582426b2..565f7da6491 100644
--- a/test/test_map.py
+++ b/test/test_map.py
@@ -659,7 +659,7 @@ class TestMAP(VppTestCase):
p4 = p_ether / ip4_ttl_expired / payload
icmp4_reply = (
- IP(id=0, ttl=254, src=self.pg0.local_ip4, dst=self.pg0.remote_ip4)
+ IP(id=0, ttl=255, src=self.pg0.local_ip4, dst=self.pg0.remote_ip4)
/ ICMP(type="time-exceeded", code="ttl-zero-during-transit")
/ IP(src=self.pg0.remote_ip4, dst="192.168.0.1", ttl=0)
/ payload
@@ -673,7 +673,7 @@ class TestMAP(VppTestCase):
p4 = p_ether / ip4_ttl_expired / payload
icmp4_reply = (
- IP(id=0, ttl=254, src=self.pg0.local_ip4, dst=self.pg0.remote_ip4)
+ IP(id=0, ttl=255, src=self.pg0.local_ip4, dst=self.pg0.remote_ip4)
/ ICMP(type="time-exceeded", code="ttl-zero-during-transit")
/ IP(src=self.pg0.remote_ip4, dst="192.168.0.1", ttl=1)
/ payload
diff --git a/test/test_mtu.py b/test/test_mtu.py
index ed4fcb57818..6735cc602a8 100644
--- a/test/test_mtu.py
+++ b/test/test_mtu.py
@@ -99,7 +99,7 @@ class TestMTU(VppTestCase):
chksum=0x2DBB,
)
icmp4_reply = (
- IP(src=self.pg0.local_ip4, dst=self.pg0.remote_ip4, ttl=254, len=576, id=0)
+ IP(src=self.pg0.local_ip4, dst=self.pg0.remote_ip4, ttl=255, len=576, id=0)
/ p_icmp4
/ p_ip4
/ p_payload
/a> 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
3n-skx-xxv710
-------------

64b-l2switching-base-avf
````````````````````````

..
    25ge2p1xxv710-avf-eth-l2patch-mrr
    25ge2p1xxv710-avf-eth-l2xcbase-mrr
    25ge2p1xxv710-avf-eth-l2bdbasemaclrn-mrr

2t1c
::::

.. raw:: html

    <a name="64b-2t1c-base-avf"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-2t1c-l2-base-avf.html"></iframe>
    <p><br></p>
    </center>

4t2c
::::

.. raw:: html

    <a name="64b-4t2c-base-avf"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-4t2c-l2-base-avf.html"></iframe>
    <p><br></p>
    </center>

8t4c
::::

.. raw:: html

    <a name="64b-8t4c-base-avf"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-8t4c-l2-base-avf.html"></iframe>
    <p><br></p>
    </center>

64b-l2switching-base-i40e
`````````````````````````

..
    25ge2p1xxv710-dot1q-l2xcbase-mrr
    25ge2p1xxv710-eth-l2xcbase-mrr
    25ge2p1xxv710-dot1q-l2bdbasemaclrn-mrr
    25ge2p1xxv710-eth-l2bdbasemaclrn-mrr

2t1c
::::

.. raw:: html

    <a name="64b-2t1c-base-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-2t1c-l2-base-i40e.html"></iframe>
    <p><br></p>
    </center>

4t2c
::::

.. raw:: html

    <a name="64b-4t2c-base-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-4t2c-l2-base-i40e.html"></iframe>
    <p><br></p>
    </center>

8t4c
::::

.. raw:: html

    <a name="64b-8t4c-base-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-8t4c-l2-base-i40e.html"></iframe>
    <p><br></p>
    </center>

64b-l2switching-base-scale-i40e
```````````````````````````````

..
    25ge2p1xxv710-eth-l2patch-mrr
    25ge2p1xxv710-eth-l2xcbase-mrr
    25ge2p1xxv710-eth-l2bdbasemaclrn-mrr
    25ge2p1xxv710-eth-l2bdscale10kmaclrn-mrr
    25ge2p1xxv710-eth-l2bdscale100kmaclrn-mrr
    25ge2p1xxv710-eth-l2bdscale1mmaclrn-mrr

2t1c
::::

.. raw:: html

    <a name="64b-2t1c-base-i40e"></a>
    <a name="64b-2t1c-scale-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-2t1c-l2-base-scale-i40e.html"></iframe>
    <p><br></p>
    </center>

4t2c
::::

.. raw:: html

    <a name="64b-4t2c-base-i40e"></a>
    <a name="64b-4t2c-scale-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-4t2c-l2-base-scale-i40e.html"></iframe>
    <p><br></p>
    </center>

8t4c
::::

.. raw:: html

    <a name="64b-8t4c-base-i40e"></a>
    <a name="64b-8t4c-scale-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-8t4c-l2-base-scale-i40e.html"></iframe>
    <p><br></p>
    </center>

64b-features-l2switching-base-i40e
``````````````````````````````````

..
    25ge2p1xxv710-eth-l2bdbasemaclrn-mrr
    25ge2p1xxv710-eth-l2bdbasemaclrn-iacl50sf-10kflows-mrr
    25ge2p1xxv710-eth-l2bdbasemaclrn-iacl50sl-10kflows-mrr
    25ge2p1xxv710-eth-l2bdbasemaclrn-oacl50sf-10kflows-mrr
    25ge2p1xxv710-eth-l2bdbasemaclrn-oacl50sl-10kflows-mrr
    25ge2p1xxv710-eth-l2bdbasemaclrn-macip-iacl50sl-10kflows-mrr

2t1c
::::

.. raw:: html

    <a name="64b-2t1c-features-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-2t1c-l2-features-i40e.html"></iframe>
    <p><br></p>
    </center>

4t2c
::::

.. raw:: html

    <a name="64b-4t2c-features-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-4t2c-l2-features-i40e.html"></iframe>
    <p><br></p>
    </center>

8t4c
::::

.. raw:: html

    <a name="64b-8t4c-features-i40e"></a>
    <center>
    Links to builds:
    <a href="https://packagecloud.io/app/fdio/master/search?dist=ubuntu%2Fbionic" target="_blank">vpp-ref</a>,
    <a href="https://jenkins.fd.io/view/csit/job/csit-vpp-perf-mrr-daily-master-3n-skx" target="_blank">csit-ref</a>
    <iframe width="1100" height="800" frameborder="0" scrolling="no" src="../_static/vpp/3n-skx-xxv710-64b-8t4c-l2-features-i40e.html"></iframe>
    <p><br></p>
    </center>