Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Hardware checksum offloading interface bug

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jc1976
      last edited by

      i brought this up once before way back but it seems like there's no clear answer and nothing was done, so i'll bring it up again.

      under "System/advanced/networking" -> Network interfaces, the top option is Hardware Checksum Offloading.

      i use suricata inline and i 'check the box' to disable the feature (my nic is an intel i350-t2v2).

      i reboot..

      under "system tunables", there's a 'tunable' called "net.inet.tcp.tso" with the description of "Enable TCP Segmentation Offload". by default it is set to '1'. in the documentation it says that this should be set to '0' to disable it.

      so, i disable it in the gui, do the reboot, and when i come back up, despite the gui portion listed above labeled as 'disabled', the tunables section has it listed as enabled '1'. so i have to manually set it to '0' and reboot again.

      or is this all backwards? freebsd docs say '1' to enable offloading, '0' to disable offloading.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @jc1976
        last edited by johnpoz

        @jc1976 so there is a diffence between checksum offloading and actual segmentation offload..

        offload.jpg

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        J 1 Reply Last reply Reply Quote 0
        • J
          jc1976 @johnpoz
          last edited by

          @johnpoz

          I thought of them as both one and the same, so correct me if i'm wrong.
          I'll have to dig up the tuning example online, i believe it comes straight from the freebsd tuning documentation.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @jc1976
            last edited by johnpoz

            @jc1976 also those things can be enabled/disabled with ifconfig

            https://man.freebsd.org/cgi/man.cgi?ifconfig

            So those can override what is set in tunables, as lest from a standpoint of disabling them via the checkmarks..

            You can just look at your interface with ifconfig to know what is enabled or disabled.

            [23.09.1-RELEASE][admin@sg4860.local.lan]/root: ifconfig
            igb0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
                    description: LAN
                    options=4e100bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,MEXTPG>
                    ether 00:08:a2:0c:e6:24
                    inet 192.168.9.253 netmask 0xffffff00 broadcast 192.168.9.255
            

            Notice the csum are enabled, but you don't see any TSO or LRO on mine..

            So its possible that what you see in your tunables does not come into play..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            J 1 Reply Last reply Reply Quote 0
            • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
            • J
              jc1976 @johnpoz
              last edited by

              @johnpoz

              i've never had a problem with it. up until i found that tunable setting i just checked (disable) (which is pretty unorthodox.. back in the old days of engineering, we always had '1' or a 'check' to signify enabled, while '0' or unchecked meant disabled, but i digress..

              but once i saw that tunable and read the advice from the bsd tuning docs, i set it to '0' as well.

              S 1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @jc1976
                last edited by

                @jc1976 said in Hardware checksum offloading interface bug:

                back in the old days of engineering, we always had '1' or a 'check' to signify enabled, while '0' or unchecked meant disabled

                Yes...there was a thread about that a few years back I think. In pfSense some of the checkboxes are check to disable but it's inconsistent, even on that page, and I suspect after all this time it would be confusing to veteran pfSense users to flip half of them to unchecked-to-disable in an update.

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Mmm, unfortunately there are a lot of legacy settings in pfSense that would not be implemented that way if done today. But changing them now is likely to cause more problems than it would solve.

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jc1976 @stephenw10
                    last edited by

                    @stephenw10

                    i'm familiar with it all enough now so that i can get around it...

                    as long as they don't start changing things just for the sake of changing things such that things that once worked properly/perfectly are now broken.. feels like thats going on with 2.7.1 & 2.7.2

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.