Skip to content
Snippets Groups Projects
Select Git revision
  • 3f1ac7a700d039c61d8d8b99f28d605d489a60cf
  • seco_lf-6.6.52-2.2.1 default protected
  • MODV-209-e-39-add-gpio-line-names-in-kernel-device-tree
  • niccolor/e88-lt9611uxc-dsi-complete-support
  • seco_lf-6.6.52-2.2.1_e88-lt9611uxc-i2s
  • seco_lf-6.6.52-2.2.1_e39-nxpbtuart
  • chka-modv-206-poc
  • seco_lf-6.6.52-2.2.1-rtl8211f_led
  • seco_lf-5.10.y protected
  • seco_lf_v2024.04_6.6.52_2.2.x_e39_spidev-overlay
  • seco_lf_v2024.04_6.6.52_2.2.x_e39_sdcard-card-detect-gpio-mode
  • integrate/gitlab-ci/cleaos-833-add-cnfluence-labels-into-config/into/seco_lf-5.10.y
  • integrate/gitlab-ci/cleaos-448-bitbake-logs-in-failed-job/into/seco_lf-6.6.52-2.2.1
  • integrate/gitlab-ci/cleaos-448-bitbake-logs-in-failed-job/into/seco_lf-5.10.y
  • chka-seco_lf-6.6.52-2.2.1-fix-eth-led-modv-198
  • didi/spi-cs
  • seco_lf-6.6.23-2.0.0_e39-e83-temperature-sensor
  • seco_lf-6.6.23-2.0.0_e39-e83-status-led
  • seco_lf-6.6.23-2.0.0_e39-e83-lvds-7inch-powersequence
  • chka-fix-eth-led-modv-198
  • seco_lf-6.6.52-2.2.1_e88-e83-dev
  • lf-6.6.52-2.2.1
  • lf-6.1.55-2.2.1
  • lf-6.6.3-1.0.0
  • lf-6.6.3-imx95-er2
  • lf-6.1.55-2.2.0
  • lf-6.6.y-imx95-er1
  • lf-5.15.71-2.2.2
  • lf-6.1.36-2.1.0
  • lf-5.15.71-2.2.1
  • lf-6.1.22-2.0.0
  • lf-6.1.1-1.0.1
  • rel_imx_5.4.24_2.1.4
  • rel_imx_4.9.88_2.0.13
  • rel_imx_4.14.98_2.3.5
  • lf-6.1.1-1.0.0
  • rel_imx_5.4.3_2.0.2
  • lf-5.15.71-2.2.0
  • lf-5.10.72-2.2.3
  • lf-5.15.52-2.1.0
  • imx_5.15.52_imx8ulp_er1
41 results

core

  • Open with
  • Download source code
  • Download directory
  • Your workspaces

      A workspace is a virtual sandbox environment for your code in GitLab.

      No agents available to create workspaces. Please consult Workspaces documentation for troubleshooting.

  • user avatar
    David Decotigny authored and David S. Miller committed
    This patch defines a new ETHTOOL_GLINKSETTINGS/SLINKSETTINGS API,
    handled by the new get_link_ksettings/set_link_ksettings callbacks.
    This API provides support for most legacy ethtool_cmd fields, adds
    support for larger link mode masks (up to 4064 bits, variable length),
    and removes ethtool_cmd deprecated
    fields (transceiver/maxrxpkt/maxtxpkt).
    
    This API is deprecating the legacy ETHTOOL_GSET/SSET API and provides
    the following backward compatibility properties:
     - legacy ethtool with legacy drivers: no change, still using the
       get_settings/set_settings callbacks.
     - legacy ethtool with new get/set_link_ksettings drivers: the new
       driver callbacks are used, data internally converted to legacy
       ethtool_cmd. ETHTOOL_GSET will return only the 1st 32b of each link
       mode mask. ETHTOOL_SSET will fail if user tries to set the
       ethtool_cmd deprecated fields to
       non-0 (transceiver/maxrxpkt/maxtxpkt). A kernel warning is logged if
       driver sets higher bits.
     - future ethtool with legacy drivers: no change, still using the
       get_settings/set_settings callbacks, internally converted to new data
       structure. Deprecated fields (transceiver/maxrxpkt/maxtxpkt) will be
       ignored and seen as 0 from user space. Note that that "future"
       ethtool tool will not allow changes to these deprecated fields.
     - future ethtool with new drivers: direct call to the new callbacks.
    
    By "future" ethtool, what is meant is:
     - query: first try ETHTOOL_GLINKSETTINGS, and revert to ETHTOOL_GSET if
       fails
     - set: query first and remember which of ETHTOOL_GLINKSETTINGS or
       ETHTOOL_GSET was successful
       + if ETHTOOL_GLINKSETTINGS was successful, then change config with
         ETHTOOL_SLINKSETTINGS. A failure there is final (do not try
         ETHTOOL_SSET).
       + otherwise ETHTOOL_GSET was successful, change config with
         ETHTOOL_SSET. A failure there is final (do not try
         ETHTOOL_SLINKSETTINGS).
    
    The interaction user/kernel via the new API requires a small
    ETHTOOL_GLINKSETTINGS handshake first to agree on the length of the link
    mode bitmaps. If kernel doesn't agree with user, it returns the bitmap
    length it is expecting from user as a negative length (and cmd field is
    0). When kernel and user agree, kernel returns valid info in all
    fields (ie. link mode length > 0 and cmd is ETHTOOL_GLINKSETTINGS).
    
    Data structure crossing user/kernel boundary is 32/64-bit
    agnostic. Converted internally to a legal kernel bitmap.
    
    The internal __ethtool_get_settings kernel helper will gradually be
    replaced by __ethtool_get_link_ksettings by the time the first
    "link_settings" drivers start to appear. So this patch doesn't change
    it, it will be removed before it needs to be changed.
    
    Signed-off-by: default avatarDavid Decotigny <decot@googlers.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3f1ac7a7
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Name Last commit Last update
    ..