svn commit: r348517 - stable/12/sys/dev/netmap
Vincenzo Maffione
vmaffione at FreeBSD.org
Sun Jun 2 20:03:01 UTC 2019
Author: vmaffione
Date: Sun Jun 2 20:03:00 2019
New Revision: 348517
URL: https://svnweb.freebsd.org/changeset/base/348517
Log:
MFC r347944
netmap: align if_ptnet to the changes introduced by r347233
This removes non-functional SCTP checksum offload support.
More information in the log message of r347233.
Modified:
stable/12/sys/dev/netmap/if_ptnet.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/netmap/if_ptnet.c
==============================================================================
--- stable/12/sys/dev/netmap/if_ptnet.c Sun Jun 2 18:46:21 2019 (r348516)
+++ stable/12/sys/dev/netmap/if_ptnet.c Sun Jun 2 20:03:00 2019 (r348517)
@@ -68,7 +68,6 @@
#include <netinet6/ip6_var.h>
#include <netinet/udp.h>
#include <netinet/tcp.h>
-#include <netinet/sctp.h>
#include <machine/bus.h>
#include <machine/resource.h>
@@ -281,9 +280,8 @@ static inline void ptnet_kick(struct ptnet_queue *pq)
#define PTNET_HDR_SIZE sizeof(struct virtio_net_hdr_mrg_rxbuf)
#define PTNET_MAX_PKT_SIZE 65536
-#define PTNET_CSUM_OFFLOAD (CSUM_TCP | CSUM_UDP | CSUM_SCTP)
-#define PTNET_CSUM_OFFLOAD_IPV6 (CSUM_TCP_IPV6 | CSUM_UDP_IPV6 |\
- CSUM_SCTP_IPV6)
+#define PTNET_CSUM_OFFLOAD (CSUM_TCP | CSUM_UDP)
+#define PTNET_CSUM_OFFLOAD_IPV6 (CSUM_TCP_IPV6 | CSUM_UDP_IPV6)
#define PTNET_ALL_OFFLOAD (CSUM_TSO | PTNET_CSUM_OFFLOAD |\
PTNET_CSUM_OFFLOAD_IPV6)
@@ -1539,9 +1537,6 @@ ptnet_rx_csum_by_offset(struct mbuf *m, uint16_t eth_t
m->m_pkthdr.csum_flags |= CSUM_DATA_VALID | CSUM_PSEUDO_HDR;
m->m_pkthdr.csum_data = 0xFFFF;
break;
- case offsetof(struct sctphdr, checksum):
- m->m_pkthdr.csum_flags |= CSUM_SCTP_VALID;
- break;
default:
/* Here we should increment the rx_csum_bad_offset counter. */
return (1);
@@ -1595,11 +1590,6 @@ ptnet_rx_csum_by_parse(struct mbuf *m, uint16_t eth_ty
return (1);
m->m_pkthdr.csum_flags |= CSUM_DATA_VALID | CSUM_PSEUDO_HDR;
m->m_pkthdr.csum_data = 0xFFFF;
- break;
- case IPPROTO_SCTP:
- if (__predict_false(m->m_len < offset + sizeof(struct sctphdr)))
- return (1);
- m->m_pkthdr.csum_flags |= CSUM_SCTP_VALID;
break;
default:
/*
More information about the svn-src-all
mailing list