Uploaded image for project: 'Ethernet 2-Port Switch'
  1. Ethernet 2-Port Switch
  2. PSETH2PS-5

Feature: Add new IOCTL command to retreive XC counters

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: V1.0.3.0
    • Labels:
      None
    • Account:
      SPC Driver Ethernet operational (SPCDRIVERE)

      Description

      Currently it is not possible to retreive the error counters provided by the XC HAL. Therefore, an appropriate IOCTL command shall be implemented that makes it possible to get the following information:

      typedef struct ETH2PS_COUNTERS_Ttag
      {  
        uint32_t ulTxOutOctets;            /**< The total number of octets transmitted out of the
                                                interface, including framing characters */
        uint32_t ulTxSingleCollisions;     /**< The number of collisions during the first try of
                                                a frame transmission */
        uint32_t ulTxMultipleCollisions;   /**< The number of collisions during a retry of
                                                a frame transmission */
        uint32_t ulTxLateCollisions;       /**< The number of collisions after the first 64 octets
                                                of the packet have been transmitted */
        uint32_t ulTxUnderrun;             /**< The number of TX MAC FIFO underruns that occur when the
                                                xPEC is too slow */
        uint32_t ulTxAborted;              /**< The number of outbound packets which were aborted during
                                                a cut-through transmission because the incoming packed
                                                was erroneous */
        uint32_t ulTxDiscarded;            /**< The number of outbound packets which were chosen to be discarded
                                                because the port is disabled */
        uint32_t ulRxInOctets;             /**< The total number of octets received on the
                                                interface, including framing characters */
        uint32_t ulRxFcsErrors;            /**< Count of received frames that are an integral number of octets in length
                                                and do not pass the FCS check */
        uint32_t ulRxAlignmentErrors;      /**< Count of received frames that are not an integral number of octets in length
                                                and do not pass the FCS check */
        uint32_t ulRxFrameLengthErrors;    /**< Count of received frames that exceed the maximum permitted frame size */
        uint32_t ulRxRuntFrames;           /**< Count of received frames that have a length between 42 and 63 Bytes
                                                and pass the FCS check */
        uint32_t ulRxCollisionFragments;   /**< Count of received frames that have a length of 63 Bytes or less
                                                and do not pass the FCS check */
        uint32_t ulRxOverflow;             /**< The number of RX MAC FIFO overflows that occur when the
                                                xPEC is too slow */
        uint32_t ulRxDiscarded;            /**< Count of inbound packets which were chosen
                                                to be discarded even though no error was detected.
                                                Possible reasons are low resources or the port is disabled. */
        uint32_t ulRxCirculatingFrmBlocked;/**< Count of inbound packets which were chosen
                                                to be discarded because the source MAC address matched one of our
                                                Chassis MAC addresses */
        uint32_t ulRxUnknownErrors;        /**< Count of illegal error states reported from the RPU */
      } ETH2PS_COUNTERS_T;

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  KMichel Kai Michel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: