Bug 206186 - [patch][netgraph] New netgraph node for calculate IP IP6 TCP UDP checksums
Summary: [patch][netgraph] New netgraph node for calculate IP IP6 TCP UDP checksums
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.3-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-01-13 09:30 UTC by Dmitry Wagin
Modified: 2019-01-19 06:09 UTC (History)
1 user (show)

See Also:


Attachments
ng_checksum (20.04 KB, patch)
2016-01-13 09:30 UTC, Dmitry Wagin
no flags Details | Diff
manpage (1.93 KB, application/octet-stream)
2016-03-03 05:06 UTC, Dmitry Wagin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Wagin 2016-01-13 09:30:11 UTC
Created attachment 165485 [details]
ng_checksum

New node can calculate IP IP6 TCP UDP checksum, prepare for hardware offloading calculate checksum.

It can be used for example with ng_patch.
Comment 1 Dmitry Wagin 2016-01-13 09:45:09 UTC
example use (with ng_patch):

 ngctl msg patch-1: "setdlt 1"
 ngctl msg checksum-1: "setdlt 1"

 ngctl msg ${_NAME}-patch-1: "setconfig { count=4 csum_flags=1 relative_offset=1 ops=[ \
   { mode=7 value=0x03 length=1 offset=1 } \
   { mode=8 value=0x88 length=1 offset=1 } \
   { mode=1 value=30120 length=2 offset=22 } \
   { mode=1 value=0 length=2 offset=26 } \
  ] }"

= set checksum flag CSUM_IP, set DSCP, set UDP port 30120, set UPD checksum = 0

 ngctl msg checksum-1: "setconfig { csum_flags=0 csum_offload=6 }"

= not sed additional checksum flags, set hardware can calculate CSUM_IP_UDP|CSUM_IP_TCP.
Comment 2 Dmitry Wagin 2016-03-03 05:06:09 UTC
Created attachment 167669 [details]
manpage

We have to check my bad english
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-08-01 12:14:52 UTC
A commit references this bug:

Author: julian
Date: Mon Aug  1 12:14:22 UTC 2016
New revision: 303613
URL: https://svnweb.freebsd.org/changeset/base/303613

Log:
  Man page for the new checksum netgraph module.

  PR:		206186
  Submitted by:	Dmitry Vagin <daemon.hammer@ya.ru>
  MFC after:	 1 month

Changes:
  head/share/man/man4/ng_checksum.4
Comment 4 commit-hook freebsd_committer freebsd_triage 2016-12-02 05:37:46 UTC
A commit references this bug:

Author: julian
Date: Fri Dec  2 05:37:32 UTC 2016
New revision: 309386
URL: https://svnweb.freebsd.org/changeset/base/309386

Log:
  MFH: r303613

  Man page for the new checksum netgraph module.

  PR:		206186
  Submitted by:	Dmitry Vagin <daemon.hammer@ya.ru>

Changes:
_U  stable/11/
  stable/11/share/man/man4/ng_checksum.4
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-12-02 05:39:51 UTC
A commit references this bug:

Author: julian
Date: Fri Dec  2 05:39:10 UTC 2016
New revision: 309388
URL: https://svnweb.freebsd.org/changeset/base/309388

Log:
  MFH: r303613

  Man page for the new checksum netgraph module.

  PR:		206186
  Submitted by:	Dmitry Vagin <daemon.hammer@ya.ru>

Changes:
_U  stable/10/
  stable/10/share/man/man4/ng_checksum.4
Comment 6 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-19 06:09:37 UTC
Patches have been committed to the repo. Closing as fixed.