Uploaded image for project: 'rcX - Operating System'
  1. rcX - Operating System
  2. RCX-858

High CPU consumption when processing invalid UDP frame

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V2.0.4.5, V2.0.4.6, V2.0.5.0, V2.0.6.0, V2.0.7.0, V2.0.8.0, V2.0.8.3, V2.0.8.4, V2.0.8.5, V2.0.8.7, V2.0.8.8, V2.0.8.9, V2.0.8.10, V2.0.8.11, V2.0.8.12, V2.0.8.14, V2.0.8.15, V2.0.8.16, V2.0.8.17, V2.0.8.18, V2.0.8.19, V2.0.8.20, V2.0.8.21, V2.0.8.22, V2.0.8.23, V2.0.8.24, V2.0.8.25, V2.0.8.26, V2.0.8.27, V2.0.8.28, V2.0.8.29, V2.0.8.30, V2.0.8.31, V2.0.8.32, V2.0.8.33, V2.0.8.34, V2.1.1.0, V2.1.2.0, V2.1.3.0, V2.1.4.0, V2.1.5.0, V2.1.5.1, V2.1.6.0, V2.1.6.1, V2.1.7.0, V2.1.7.1, V2.1.8.0, V2.1.8.1, V2.1.9.0, V2.1.9.1, V2.1.10.0, V2.1.11.0, V2.1.11.1, V2.1.11.2, V2.1.11.3, V2.1.11.4, V2.1.11.5, V2.1.11.6, V2.1.11.7, V2.1.11.8, V2.1.11.9, V2.1.11.10, V2.1.11.11, V2.1.12.0, V2.1.13.0, V2.1.14.0
    • Fix Version/s: V2.1.14.1
    • Component/s: Drivers
    • Labels:
      None
    • Sprint:
      SDO Sprint 1
    • Account:
      SDO rcX (SDORCX)

      Description

      In the function DrvEddReceiveCbk() the UDP checksum is calculated in order to varify the checksum of the received frame.

      In case of an invalid UPD frame that has a very high UDP length value (e.g. >32k), this checksum calculation takes about 2.5ms. During that time other tasks running with a lower priority are blocked. In most cases this functions is called in the context of the HAL-EDD component, which interfaces to the HAL of the XC. This context usually has a very high priority in the sytem.

       

      However, the function DrvEddReceiveCbk() should be optimized so that invalid frames will be rejected efficiently.

        Attachments

          Issue Links

            Expenses

              Activity

                Status Description

                  People

                  • Reporter:
                    LContreras Luis Contreras [X] (Inactive)
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: