api: fix [un]formatting in vpp/api/types.c
[vpp.git] / src / plugins / vmxnet3 / input.c
index 3015fb1..2563254 100644 (file)
@@ -23,6 +23,7 @@
 #include <vnet/ip/ip6_packet.h>
 #include <vnet/ip/ip4_packet.h>
 #include <vnet/udp/udp_packet.h>
+#include <vnet/tcp/tcp_packet.h>
 #include <vnet/interface/rx_queue_funcs.h>
 #include <vmxnet3/vmxnet3.h>
 
@@ -106,19 +107,11 @@ vmxnet3_handle_offload (vmxnet3_rx_comp * rx_comp, vlib_buffer_t * hb,
            {
              if (rx_comp->flags & VMXNET3_RXCF_TCP)
                {
-                 tcp_header_t *tcp =
-                   (tcp_header_t *) (hb->data +
-                                     vnet_buffer (hb)->l4_hdr_offset);
                  oflags |= VNET_BUFFER_OFFLOAD_F_TCP_CKSUM;
-                 tcp->checksum = 0;
                }
              else if (rx_comp->flags & VMXNET3_RXCF_UDP)
                {
-                 udp_header_t *udp =
-                   (udp_header_t *) (hb->data +
-                                     vnet_buffer (hb)->l4_hdr_offset);
                  oflags |= VNET_BUFFER_OFFLOAD_F_UDP_CKSUM;
-                 udp->checksum = 0;
                }
            }
        }
@@ -384,8 +377,8 @@ vmxnet3_device_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
          if (PREDICT_FALSE
              (vnet_device_input_have_features (vd->sw_if_index)))
            {
-             vnet_feature_start_device_input_x1 (vd->sw_if_index,
-                                                 &next_index, hb);
+             vnet_feature_start_device_input (vd->sw_if_index, &next_index,
+                                              hb);
              known_next = 1;
            }
 
@@ -487,7 +480,6 @@ VLIB_NODE_FN (vmxnet3_input_node) (vlib_main_t * vm,
 }
 
 #ifndef CLIB_MARCH_VARIANT
-/* *INDENT-OFF* */
 VLIB_REGISTER_NODE (vmxnet3_input_node) = {
   .name = "vmxnet3-input",
   .sibling_of = "device-input",
@@ -500,7 +492,6 @@ VLIB_REGISTER_NODE (vmxnet3_input_node) = {
 };
 #endif
 
-/* *INDENT-ON* */
 
 /*
  * fd.io coding-style-patch-verification: ON