[Bug 259249] vtnet: Checksum offloading enabled reduces pf NAT performance (~100mbps -> ~200kbps)

2021-10-26 Thread bugzilla-noreply
Status|New |Open Summary|[vtnet] [regression]: |vtnet: Checksum offloading |checksum offloading is |enabled reduces pf NAT |suppressing pf NAT |performance (~100mbps

Re: Netmap Checksum Offloading

2016-06-16 Thread Michael Tuexen
> On 16 Jun 2016, at 08:40, Dominik Schoeffmann wrote: > > Is the checksum offloading patch for the igb(4) driver available online? > (I could not find it) > I would really like to take a look at it, espacially the context > descriptor part of it. I would also be interested in

Re: Netmap Checksum Offloading

2016-06-15 Thread Dominik Schoeffmann
Is the checksum offloading patch for the igb(4) driver available online? (I could not find it) I would really like to take a look at it, espacially the context descriptor part of it. Best regards, Dominik On 16.06.2016 02:04, Jim Thompson wrote: > > Luiz Otavio O Souza (loos@) developed

Re: Netmap Checksum Offloading

2016-06-15 Thread Jim Thompson
ly offload checksums for different kinds > of packets (IPv4, UDP, TCP). > The ixgbe netmap patch was modified [2] in order to construct context > descriptors and suitable data descriptors. This is implemented in less > than 250 LoC (including pseudo-header calculations). > The man

Re: Netmap Checksum Offloading

2016-06-15 Thread Jim Thompson
rator >>> called MoonGen [1] in order to utilize netmap. >>> One key component was to flexibly offload checksums for different kinds >>> of packets (IPv4, UDP, TCP). >>> The ixgbe netmap patch was modified [2] in order to construct context >>> descriptors a

Re: Netmap Checksum Offloading

2016-06-15 Thread Navdeep Parhar
gt; One key component was to flexibly offload checksums for different kinds >> of packets (IPv4, UDP, TCP). >> The ixgbe netmap patch was modified [2] in order to construct context >> descriptors and suitable data descriptors. This is implemented in less >> than 250 LoC (includi

Re: Netmap Checksum Offloading

2016-06-15 Thread Andrey Yakovlev
s is implemented in less > than 250 LoC (including pseudo-header calculations). > The man page states, that checksum offloading is available via ethtool, > although a solution inside the netmap API might be a cleaner way for > applications to actually use these features. > Attached i

Netmap Checksum Offloading

2016-06-14 Thread Dominik Schoeffmann
er to construct context descriptors and suitable data descriptors. This is implemented in less than 250 LoC (including pseudo-header calculations). The man page states, that checksum offloading is available via ethtool, although a solution inside the netmap API might be a cleaner way for applicatio

[Differential] [Closed] D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012)

2016-02-18 Thread Phabricator
This revision was automatically updated to reflect the committed changes. Closed by commit rS295793: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012) (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5317?vs=13408&id=13481#toc REPOSITORY

[Differential] [Accepted] D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012)

2016-02-18 Thread adrian (Adrian Chadd)
adrian accepted this revision. This revision has a positive review. REVISION DETAIL https://reviews.freebsd.org/D5317 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0s

[Differential] [Request, 2 lines] D5317: hyperv/hn: Enable IP header checksum offloading for WIN8 (WinServ2012)

2016-02-18 Thread sepherosa_gmail.com (Sepherosa Ziehau)
/hv_netvsc_drv_freebsd.c +++ b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c @@ -176,7 +176,7 @@ * later. UDP checksum offloading doesn't work on earlier * Windows releases. */ -#define HN_CSUM_ASSIST_WIN8 (CSUM_TCP) +#define HN_CSUM_ASSIST_WIN8 (CSUM_IP | CSUM_TCP) #d

[Differential] [Closed] D5099: hyperv/hn: Enable IP header checksum offloading

2016-02-04 Thread Phabricator
This revision was automatically updated to reflect the committed changes. Closed by commit rS295298: hyperv/hn: Enable IP header checksum offloading (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D5099?vs=12775&id=13032#toc REPOSITORY rS FreeBSD src reposi

[Differential] [Request, 5 lines] D5099: hyperv/hn: Enable IP header checksum offloading

2016-01-27 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com created this revision. sepherosa_gmail.com added reviewers: network, adrian, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com. sepherosa_gmail.com added a subscriber: freebsd-net-list. REVISION SUMMARY - TCP/IP stack will not do unnecessary IP

[Bug 170081] [fxp] pf/nat/jails not working if checksum offloading is enabled on fxp0

2015-10-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=170081 Kristof Provost changed: What|Removed |Added CC||k...@freebsd.org Sta

[Bug 170081] [fxp] pf/nat/jails not working if checksum offloading is enabled on fxp0

2015-10-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=170081 alucard...@gmail.com changed: What|Removed |Added CC||alucard...@gmail.com --- Com

Re: RX checksum offloading problem

2014-05-13 Thread Michael Tuexen
On 13 May 2014, at 07:21, Yonghyeon PYUN wrote: > On Mon, May 12, 2014 at 01:22:03PM +0200, Michael Tuexen wrote: >> On 12 May 2014, at 03:36, Yonghyeon PYUN wrote: >> >>> On Fri, May 09, 2014 at 12:46:48PM +0200, Michael Tuexen wrote: On 09 May 2014, at 03:35, Yonghyeon PYUN wrote:

Re: TX Checksum offloading issue with re interfaces

2014-05-13 Thread Michael Tuexen
014, at 03:47, Yonghyeon PYUN wrote: >>>> >>>>> On Thu, May 08, 2014 at 08:50:48PM +0200, Michael Tuexen wrote: >>>>>> Dear all, >>>>>> >>>>>> while testing checksum offloading of UDP packets over IP with IP >>>

Re: TX Checksum offloading issue with re interfaces

2014-05-12 Thread Yonghyeon PYUN
; On Thu, May 08, 2014 at 08:50:48PM +0200, Michael Tuexen wrote: > >>>> Dear all, > >>>> > >>>> while testing checksum offloading of UDP packets over IP with IP > >>>> options, I figured > >>>> out that my card > >>&g

Re: RX checksum offloading problem

2014-05-12 Thread Yonghyeon PYUN
On Mon, May 12, 2014 at 01:22:03PM +0200, Michael Tuexen wrote: > On 12 May 2014, at 03:36, Yonghyeon PYUN wrote: > > > On Fri, May 09, 2014 at 12:46:48PM +0200, Michael Tuexen wrote: > >> On 09 May 2014, at 03:35, Yonghyeon PYUN wrote: > >> [...] > > Oops, sorry. You're right. Probably I wa

Re: RX checksum offloading problem

2014-05-12 Thread Michael Tuexen
_data and the flag CSUM_DATA_VALID is set. This >>>>>>>>>>> happens >>>>>>>>>>> for all IP packets, not only for UDP and TCP packets. >>>>>>>>>>> 2. In case of SCTP packets, the SCTP interprets CSUM_DAT

Re: RX checksum offloading problem

2014-05-09 Thread Michael Tuexen
se of SCTP packets, the SCTP interprets CSUM_DATA_VALID as >>>>>>>>> CSUM_SCTP_VALID >>>>>>>>> and accepts the packet. So no SCTP checksum check ever happened. >>>>>>>>> >>>>>>>>> Altern

Re: RX checksum offloading problem

2014-05-09 Thread Michael Tuexen
;>>>> Alternatives to fix this: >>>>>>>> >>>>>>>> 1. Change all drivers to set CSUM_DATA_VALID only in case of UDP or >>>>>>>> TCP packets, since >>>>>>>> it only makes sense in these cases

Re: TX Checksum offloading issue with re interfaces

2014-05-09 Thread Michael Tuexen
On 09 May 2014, at 03:47, Yonghyeon PYUN wrote: > On Thu, May 08, 2014 at 08:50:48PM +0200, Michael Tuexen wrote: >> Dear all, >> >> while testing checksum offloading of UDP packets over IP with IP options, I >> figured >> out that my card >> >> de

Re: TX Checksum offloading issue with re interfaces

2014-05-08 Thread Yonghyeon PYUN
On Thu, May 08, 2014 at 08:50:48PM +0200, Michael Tuexen wrote: > Dear all, > > while testing checksum offloading of UDP packets over IP with IP options, I > figured > out that my card > > dev.re.1.%desc: RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet > dev.r

Re: RX checksum offloading problem

2014-05-08 Thread Yonghyeon PYUN
t; TCP packets, since > >>>>>> it only makes sense in these cases. > >>>>> > >>>>> Wait, or for SCTP in cad the crc32 (I think it was) was actually > >>>>> checked but not otherwise. This is how it should be imho. It seems >

TX Checksum offloading issue with re interfaces

2014-05-08 Thread Michael Tuexen
Dear all, while testing checksum offloading of UDP packets over IP with IP options, I figured out that my card dev.re.1.%desc: RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet dev.re.1.%driver: re dev.re.1.%location: slot=0 function=0 handle=\_SB_.PCI0.PE1F.LAN2 dev.re.1.%pnpinfo

Re: RX checksum offloading problem

2014-05-08 Thread Michael Tuexen
>> >>>>> Wait, or for SCTP in cad the crc32 (I think it was) was actually checked >>>>> but not otherwise. This is how it should be imho. It seems like a >>>>> driver bug. >>>> I went through the list of drivers and you are ri

Re: RX checksum offloading problem

2014-05-07 Thread Yonghyeon PYUN
gt;>> packets, since > >>>> it only makes sense in these cases. > >>> > >>> Wait, or for SCTP in cad the crc32 (I think it was) was actually checked > >>> but not otherwise. This is how it should be imho. It seems like a > >>>

Re: RX checksum offloading problem

2014-05-07 Thread Michael Tuexen
the list of drivers and you are right, it seems to be a bug >> in if_smsc.c. Most of the other drivers check for UDP/TCP, a small set I >> can't tell. >> > > I'm not sure how the controller computes TCP/UDP checksum values. > It seems the publicly available d

Re: RX checksum offloading problem

2014-05-07 Thread Yonghyeon PYUN
This is how it should be imho. It seems like a driver > > bug. > I went through the list of drivers and you are right, it seems to be a bug > in if_smsc.c. Most of the other drivers check for UDP/TCP, a small set I > can't tell. > I'm not sure how the controller comp

Re: RX checksum offloading problem

2014-05-03 Thread Michael Tuexen
On 02 May 2014, at 16:02, Bjoern A. Zeeb wrote: > > On 02 May 2014, at 10:22 , Michael Tuexen > wrote: > >> Dear all, >> >> during testing I found that FreeBSD head (on a raspberry pi) accepts SCTP >> packet >> with bad checksums. After debugging this I figured out that this is a >> proble

Re: RX checksum offloading problem

2014-05-03 Thread Michael Tuexen
On 02 May 2014, at 16:02, Bjoern A. Zeeb wrote: > > On 02 May 2014, at 10:22 , Michael Tuexen > wrote: > >> Dear all, >> >> during testing I found that FreeBSD head (on a raspberry pi) accepts SCTP >> packet >> with bad checksums. After debugging this I figured out that this is a >> proble

Re: RX checksum offloading problem

2014-05-02 Thread Bjoern A. Zeeb
On 02 May 2014, at 10:22 , Michael Tuexen wrote: > Dear all, > > during testing I found that FreeBSD head (on a raspberry pi) accepts SCTP > packet > with bad checksums. After debugging this I figured out that this is a problem > with > the csum_flags defined in mbuf.h. > > The SCTP code on

RX checksum offloading problem

2014-05-02 Thread Michael Tuexen
Dear all, during testing I found that FreeBSD head (on a raspberry pi) accepts SCTP packet with bad checksums. After debugging this I figured out that this is a problem with the csum_flags defined in mbuf.h. The SCTP code on its input path checks for CSUM_SCTP_VALID, which is defined in mbuf.h:

Re: kern/170081: [fxp] pf/nat/jails not working if checksum offloading is enabled on fxp0

2013-04-12 Thread Johan Broman
The following reply was made to PR kern/170081; it has been noted by GNATS. From: Johan Broman To: bug-follo...@freebsd.org, h.sku...@gmail.com Cc: Subject: Re: kern/170081: [fxp] pf/nat/jails not working if checksum offloading is enabled on fxp0 Date: Fri, 12 Apr 2013 10:30:50 +0200

Re: kern/170081: [fxp] pf/nat/jails not working if checksum offloading is enabled on fxp0

2012-07-23 Thread linimon
Old Synopsis: pf/nat/jails not working if checksum offloading is enabled on fxp0 New Synopsis: [fxp] pf/nat/jails not working if checksum offloading is enabled on fxp0 Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Mon Jul 23

Re: Checksum offloading

2008-12-21 Thread Jack Vogel
yzing how TCP/UDP checksum offloading works > > to find the best way to add SCTP checksum offloading. > > > > sys/mbuf.h has constants: > > #define CSUM_IP 0x0001 /* will csum IP */ > > #define CSUM_TCP0x0002

Re: Checksum offloading

2008-12-21 Thread Pyun YongHyeon
On Sat, Dec 20, 2008 at 10:31:39PM +0100, Michael T?xen wrote: > Dear all, > > I'm currently analyzing how TCP/UDP checksum offloading works > to find the best way to add SCTP checksum offloading. > > sys/mbuf.h has constants: > #define CSUM_IP

Checksum offloading

2008-12-20 Thread Michael Tüxen
Dear all, I'm currently analyzing how TCP/UDP checksum offloading works to find the best way to add SCTP checksum offloading. sys/mbuf.h has constants: #define CSUM_IP 0x0001 /* will csum IP */ #define CSUM_TCP0x0002 /* will csum TCP */ #d

Re: fxp(4) checksum (offloading?) errors

2007-01-31 Thread Erik Trulsson
um: 0xac18 [incorrect, should be 0xfbc7 (maybe caused by > > checksum offloading?)] > > > > for example. > > > > If I understand it more or less correctly, checksum offloading is > > performed by or with help of the NIC - only for TCP and UDP, where the >

Re: fxp(4) checksum (offloading?) errors

2007-01-31 Thread Cédric Jonas
t; Checksum: 0xac18 [incorrect, should be 0xfbc7 (maybe caused > > by checksum offloading?)] > > > > for example. > > Is that for incoming or outgoing packets? If it is for outgoing it is > perfectly normal and nothing to be worried about (assuming that your > N

Re: fxp(4) checksum (offloading?) errors

2007-01-31 Thread Wesley Shields
On Wed, Jan 31, 2007 at 09:47:05PM +0100, C?dric Jonas wrote: > Hi, > > I get TCP/UDP checksum errors with fxp(4). I noticed it after using > Wireshark today: > > Checksum: 0xac18 [incorrect, should be 0xfbc7 (maybe caused by > checksum offloading?)] >

Re: fxp(4) checksum (offloading?) errors

2007-01-31 Thread Erik Trulsson
On Wed, Jan 31, 2007 at 09:47:05PM +0100, Cédric Jonas wrote: > Hi, > > I get TCP/UDP checksum errors with fxp(4). I noticed it after using > Wireshark today: > > Checksum: 0xac18 [incorrect, should be 0xfbc7 (maybe caused by > checksum offloading?)] > >

fxp(4) checksum (offloading?) errors

2007-01-31 Thread Cédric Jonas
Hi, I get TCP/UDP checksum errors with fxp(4). I noticed it after using Wireshark today: Checksum: 0xac18 [incorrect, should be 0xfbc7 (maybe caused by checksum offloading?)] for example. If I understand it more or less correctly, checksum offloading is performed by or with

checksum offloading

2001-07-05 Thread Alfred Perlstein
How does one specify that an mbuf/mbuf-chain needs or doesn't need to have its IP/TCP checksum calculated? -- -Alfred Perlstein [[EMAIL PROTECTED]] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to [EMAIL PROTECTED] with "uns