~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/networking/devlink/devlink-reload.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/networking/devlink/devlink-reload.rst (Architecture mips) and /Documentation/networking/devlink/devlink-reload.rst (Architecture sparc)


  1 .. SPDX-License-Identifier: GPL-2.0                 1 .. SPDX-License-Identifier: GPL-2.0
  2                                                     2 
  3 ==============                                      3 ==============
  4 Devlink Reload                                      4 Devlink Reload
  5 ==============                                      5 ==============
  6                                                     6 
  7 ``devlink-reload`` provides mechanism to reini      7 ``devlink-reload`` provides mechanism to reinit driver entities, applying
  8 ``devlink-params`` and ``devlink-resources`` n      8 ``devlink-params`` and ``devlink-resources`` new values. It also provides
  9 mechanism to activate firmware.                     9 mechanism to activate firmware.
 10                                                    10 
 11 Reload Actions                                     11 Reload Actions
 12 ==============                                     12 ==============
 13                                                    13 
 14 User may select a reload action.                   14 User may select a reload action.
 15 By default ``driver_reinit`` action is selecte     15 By default ``driver_reinit`` action is selected.
 16                                                    16 
 17 .. list-table:: Possible reload actions            17 .. list-table:: Possible reload actions
 18    :widths: 5 90                                   18    :widths: 5 90
 19                                                    19 
 20    * - Name                                        20    * - Name
 21      - Description                                 21      - Description
 22    * - ``driver-reinit``                           22    * - ``driver-reinit``
 23      - Devlink driver entities re-initializati     23      - Devlink driver entities re-initialization, including applying
 24        new values to devlink entities which ar     24        new values to devlink entities which are used during driver
 25        load which are:                             25        load which are:
 26                                                    26 
 27        * ``devlink-params`` in configuration m     27        * ``devlink-params`` in configuration mode ``driverinit``
 28        * ``devlink-resources``                     28        * ``devlink-resources``
 29                                                    29 
 30        Other devlink entities may stay over th     30        Other devlink entities may stay over the re-initialization:
 31                                                    31 
 32        * ``devlink-health-reporter``               32        * ``devlink-health-reporter``
 33        * ``devlink-region``                        33        * ``devlink-region``
 34                                                    34 
 35        The rest of the devlink entities have t     35        The rest of the devlink entities have to be removed and readded.
 36    * - ``fw_activate``                             36    * - ``fw_activate``
 37      - Firmware activate. Activates new firmwa     37      - Firmware activate. Activates new firmware if such image is stored and
 38        pending activation. If no limitation sp     38        pending activation. If no limitation specified this action may involve
 39        firmware reset. If no new image pending     39        firmware reset. If no new image pending this action will reload current
 40        firmware image.                             40        firmware image.
 41                                                    41 
 42 Note that even though user asks for a specific     42 Note that even though user asks for a specific action, the driver
 43 implementation might require to perform anothe     43 implementation might require to perform another action alongside with
 44 it. For example, some driver do not support dr     44 it. For example, some driver do not support driver reinitialization
 45 being performed without fw activation. Therefo     45 being performed without fw activation. Therefore, the devlink reload
 46 command returns the list of actions which were     46 command returns the list of actions which were actrually performed.
 47                                                    47 
 48 Reload Limits                                      48 Reload Limits
 49 =============                                      49 =============
 50                                                    50 
 51 By default reload actions are not limited and      51 By default reload actions are not limited and driver implementation may
 52 include reset or downtime as needed to perform     52 include reset or downtime as needed to perform the actions.
 53                                                    53 
 54 However, some drivers support action limits, w     54 However, some drivers support action limits, which limit the action
 55 implementation to specific constraints.            55 implementation to specific constraints.
 56                                                    56 
 57 .. list-table:: Possible reload limits             57 .. list-table:: Possible reload limits
 58    :widths: 5 90                                   58    :widths: 5 90
 59                                                    59 
 60    * - Name                                        60    * - Name
 61      - Description                                 61      - Description
 62    * - ``no_reset``                                62    * - ``no_reset``
 63      - No reset allowed, no down time allowed,     63      - No reset allowed, no down time allowed, no link flap and no
 64        configuration is lost.                      64        configuration is lost.
 65                                                    65 
 66 Change Namespace                                   66 Change Namespace
 67 ================                                   67 ================
 68                                                    68 
 69 The netns option allows user to be able to mov     69 The netns option allows user to be able to move devlink instances into
 70 namespaces during devlink reload operation.        70 namespaces during devlink reload operation.
 71 By default all devlink instances are created i     71 By default all devlink instances are created in init_net and stay there.
 72                                                    72 
 73 example usage                                      73 example usage
 74 -------------                                      74 -------------
 75                                                    75 
 76 .. code:: shell                                    76 .. code:: shell
 77                                                    77 
 78     $ devlink dev reload help                      78     $ devlink dev reload help
 79     $ devlink dev reload DEV [ netns { PID | N     79     $ devlink dev reload DEV [ netns { PID | NAME | ID } ] [ action { driver_reinit | fw_activate } ] [ limit no_reset ]
 80                                                    80 
 81     # Run reload command for devlink driver en     81     # Run reload command for devlink driver entities re-initialization:
 82     $ devlink dev reload pci/0000:82:00.0 acti     82     $ devlink dev reload pci/0000:82:00.0 action driver_reinit
 83     reload_actions_performed:                      83     reload_actions_performed:
 84       driver_reinit                                84       driver_reinit
 85                                                    85 
 86     # Run reload command to activate firmware:     86     # Run reload command to activate firmware:
 87     # Note that mlx5 driver reloads the driver     87     # Note that mlx5 driver reloads the driver while activating firmware
 88     $ devlink dev reload pci/0000:82:00.0 acti     88     $ devlink dev reload pci/0000:82:00.0 action fw_activate
 89     reload_actions_performed:                      89     reload_actions_performed:
 90       driver_reinit fw_activate                    90       driver_reinit fw_activate
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php