All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/11] Improve env var handling for net stack
@ 2015-04-21 22:02 Joe Hershberger
  2015-04-21 22:02 ` [U-Boot] [PATCH 01/11] sandbox: Enable some ENV commands Joe Hershberger
                   ` (12 more replies)
  0 siblings, 13 replies; 196+ messages in thread
From: Joe Hershberger @ 2015-04-21 22:02 UTC (permalink / raw)
  To: u-boot

This includes moving CONFIG_REGEX to Kconfig and adding support for
regex to the env_attr lists (when CONFIG_REGEX is enabled).

This allows ethaddrs to all be checked for access and format by default.
Also use callbacks to keep network stack variables up to date instead of
polling them on each call to net_loop.

This is a step in the right direction to refactoring the network stack
to be similar to that of barebox.


Joe Hershberger (11):
  sandbox: Enable some ENV commands
  kconfig: Move REGEX to Kconfig
  sandbox: Enable regex support
  env: Fix return values in env_attr_lookup()
  env: Simplify the reverse_strstr() interface
  env: Allow env_attr_walk to pass a priv * to callback
  env: Add regex support to env_attrs
  env: Distinguish finer between source of env change
  net: Apply default format rules to all ethaddr
  net: Use env callbacks for net variables
  net: Add default flags for common net env vars

 common/cmd_nvedit.c                |  36 +++++---
 common/env_attr.c                  | 179 ++++++++++++++++++++++++++++---------
 common/env_callback.c              |   6 +-
 common/env_flags.c                 |   6 +-
 configs/acadia_defconfig           |   1 +
 configs/bamboo_defconfig           |   1 +
 configs/bubinga_defconfig          |   1 +
 configs/canyonlands_defconfig      |   1 +
 configs/dlvision-10g_defconfig     |   1 +
 configs/dlvision_defconfig         |   1 +
 configs/ebony_defconfig            |   1 +
 configs/gdppc440etx_defconfig      |   1 +
 configs/icon_defconfig             |   1 +
 configs/intip_defconfig            |   1 +
 configs/io64_defconfig             |   1 +
 configs/io_defconfig               |   1 +
 configs/iocon_defconfig            |   1 +
 configs/katmai_defconfig           |   1 +
 configs/kilauea_defconfig          |   1 +
 configs/luan_defconfig             |   1 +
 configs/m28evk_defconfig           |   1 +
 configs/m53evk_defconfig           |   1 +
 configs/makalu_defconfig           |   1 +
 configs/neo_defconfig              |   1 +
 configs/novena_defconfig           |   1 +
 configs/ocotea_defconfig           |   1 +
 configs/redwood_defconfig          |   1 +
 configs/sandbox_defconfig          |   1 +
 configs/sequoia_defconfig          |   1 +
 configs/socfpga_arria5_defconfig   |   1 +
 configs/socfpga_cyclone5_defconfig |   1 +
 configs/t3corp_defconfig           |   1 +
 configs/taihu_defconfig            |   1 +
 configs/taishan_defconfig          |   1 +
 configs/walnut_defconfig           |   1 +
 configs/yosemite_defconfig         |   1 +
 configs/yucca_defconfig            |   1 +
 include/configs/amcc-common.h      |   1 -
 include/configs/m28evk.h           |   1 -
 include/configs/m53evk.h           |   1 -
 include/configs/novena.h           |   1 -
 include/configs/sandbox.h          |   5 ++
 include/configs/socfpga_arria5.h   |   1 -
 include/configs/socfpga_cyclone5.h |   1 -
 include/env_attr.h                 |  10 +--
 include/env_callback.h             |  32 ++++++-
 include/env_flags.h                |  23 ++++-
 include/search.h                   |   2 +
 lib/Kconfig                        |   8 ++
 net/net.c                          | 105 ++++++++++++++++++----
 test/dm/eth.c                      |   1 +
 51 files changed, 358 insertions(+), 94 deletions(-)

-- 
1.7.11.5

^ permalink raw reply	[flat|nested] 196+ messages in thread

end of thread, other threads:[~2015-05-23 12:42 UTC | newest]

Thread overview: 196+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-21 22:02 [U-Boot] [PATCH 00/11] Improve env var handling for net stack Joe Hershberger
2015-04-21 22:02 ` [U-Boot] [PATCH 01/11] sandbox: Enable some ENV commands Joe Hershberger
2015-04-24  4:33   ` Simon Glass
2015-04-21 22:02 ` [U-Boot] [PATCH 02/11] kconfig: Move REGEX to Kconfig Joe Hershberger
2015-04-24  4:33   ` Simon Glass
2015-05-10 14:07   ` [U-Boot] [U-Boot,02/11] " Tom Rini
2015-05-10 18:05     ` Joe Hershberger
2015-05-10 18:30       ` Tom Rini
2015-04-21 22:02 ` [U-Boot] [PATCH 03/11] sandbox: Enable regex support Joe Hershberger
2015-04-24  4:33   ` Simon Glass
2015-04-21 22:02 ` [U-Boot] [PATCH 04/11] env: Fix return values in env_attr_lookup() Joe Hershberger
2015-04-24  4:33   ` Simon Glass
2015-04-21 22:02 ` [U-Boot] [PATCH 05/11] env: Simplify the reverse_strstr() interface Joe Hershberger
2015-04-24  4:34   ` Simon Glass
2015-04-27 19:24     ` Joe Hershberger
2015-04-27 19:31       ` Joe Hershberger
2015-04-27 19:58         ` Simon Glass
2015-04-21 22:02 ` [U-Boot] [PATCH 06/11] env: Allow env_attr_walk to pass a priv * to callback Joe Hershberger
2015-04-21 22:20   ` Joe Hershberger
2015-04-24  4:34     ` Simon Glass
2015-04-21 22:02 ` [U-Boot] [PATCH 07/11] env: Add regex support to env_attrs Joe Hershberger
2015-04-24  4:34   ` Simon Glass
2015-04-21 22:02 ` [U-Boot] [PATCH 08/11] env: Distinguish finer between source of env change Joe Hershberger
2015-04-24  4:34   ` Simon Glass
2015-04-21 22:02 ` [U-Boot] [PATCH 09/11] net: Apply default format rules to all ethaddr Joe Hershberger
2015-04-24  4:34   ` Simon Glass
2015-04-27 19:35     ` Joe Hershberger
2015-04-27 19:59       ` Simon Glass
2015-04-21 22:02 ` [U-Boot] [PATCH 10/11] net: Use env callbacks for net variables Joe Hershberger
2015-04-24  4:34   ` Simon Glass
2015-04-27 19:38     ` Joe Hershberger
2015-04-21 22:02 ` [U-Boot] [PATCH 11/11] net: Add default flags for common net env vars Joe Hershberger
2015-04-24  4:35   ` Simon Glass
2015-04-24  4:32 ` [U-Boot] [PATCH 00/11] Improve env var handling for net stack Simon Glass
2015-04-27 18:20   ` Joe Hershberger
2015-04-27 19:53     ` Simon Glass
2015-04-27 20:07       ` Joe Hershberger
2015-04-29  5:50 ` [U-Boot] [PATCH v2 00/19] " Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 01/19] sandbox: Enable some ENV commands Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 02/19] kconfig: Move REGEX to Kconfig Joe Hershberger
2015-04-29  5:59     ` Stefan Roese
2015-04-29  5:50   ` [U-Boot] [PATCH v2 03/19] sandbox: Enable regex support Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 04/19] env: Fix return values in env_attr_lookup() Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 05/19] env: Simplify the reverse_strstr() interface Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 06/19] env: Allow env_attr_walk to pass a priv * to callback Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 07/19] env: Add regex support to env_attrs Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 08/19] env: Distinguish finer between source of env change Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 09/19] net: Apply default format rules to all ethaddr Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 10/19] net: Use env callbacks for net variables Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 11/19] net: Add default flags for common net env vars Joe Hershberger
2015-04-29  5:50   ` [U-Boot] [PATCH v2 12/19] test: Generalize the unit test framework Joe Hershberger
2015-05-01  3:46     ` Simon Glass
2015-04-29  5:51   ` [U-Boot] [PATCH v2 13/19] test: dm: Don't bail on all tests if one test fails Joe Hershberger
2015-05-01  3:46     ` Simon Glass
2015-04-29  5:51   ` [U-Boot] [PATCH v2 14/19] test: Return values from the asserts compatible with cmds Joe Hershberger
2015-05-01  3:46     ` Simon Glass
2015-04-29  5:51   ` [U-Boot] [PATCH v2 15/19] test: env: Add test framework for env Joe Hershberger
2015-05-01  3:46     ` Simon Glass
2015-04-29  5:51   ` [U-Boot] [PATCH v2 16/19] test: env: Add test for verifying env attrs Joe Hershberger
2015-05-01  3:46     ` Simon Glass
2015-05-03 20:16       ` Joe Hershberger
2015-04-29  5:51   ` [U-Boot] [PATCH v2 17/19] test: env: Add a test of the new regex behavior for attrs Joe Hershberger
2015-05-01  3:46     ` Simon Glass
2015-04-29  5:51   ` [U-Boot] [PATCH v2 18/19] sandbox: Cleanup order and extra defines in defconfig Joe Hershberger
2015-05-01  3:46     ` Simon Glass
2015-04-29  5:51   ` [U-Boot] [PATCH v2 19/19] sandbox: Enable env unit tests Joe Hershberger
2015-05-01  3:46     ` Simon Glass
2015-05-03 20:12   ` [U-Boot] [PATCH v3 00/26] Improve env var handling for net stack Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 01/26] sandbox: Enable some ENV commands Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 02/26] kconfig: Move REGEX to Kconfig Joe Hershberger
2015-05-04  8:18       ` Pavel Machek
2015-05-03 20:12     ` [U-Boot] [PATCH v3 03/26] sandbox: Enable regex support Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 04/26] env: Fix return values in env_attr_lookup() Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 05/26] env: Simplify the reverse_strstr() interface Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 06/26] env: Allow env_attr_walk to pass a priv * to callback Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 07/26] env: Add regex support to env_attrs Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 08/26] env: Distinguish finer between source of env change Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 09/26] net: Apply default format rules to all ethaddr Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 10/26] net: Use env callbacks for net variables Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 11/26] net: Add default flags for common net env vars Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 12/26] net: Remove duplicate bootfile syncing functionality Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 13/26] net: Handle ethaddr changes as an env callback Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 14/26] test: Generalize the unit test framework Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 15/26] test: Add a common unit test command Joe Hershberger
2015-05-05 20:56       ` Simon Glass
2015-05-03 20:12     ` [U-Boot] [PATCH v3 16/26] test: Move the unit tests to their own menu Joe Hershberger
2015-05-05 20:56       ` Simon Glass
2015-05-03 20:12     ` [U-Boot] [PATCH v3 17/26] test: dm: Don't bail on all tests if one test fails Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 18/26] test: dm: eth: Handle failed test env cleanup Joe Hershberger
2015-05-05 20:56       ` Simon Glass
2015-05-05 23:39         ` Joe Hershberger
2015-05-06 15:11           ` Simon Glass
2015-05-06 15:39             ` Joe Hershberger
2015-05-06 15:59               ` Simon Glass
2015-05-06 17:54                 ` [U-Boot] [WORKING PATCH 1/2] sandbox: Use defconfig to enable features Joe Hershberger
2015-05-06 17:54                   ` [U-Boot] [WORKING PATCH 2/2] fixup! test: dm: eth: Handle failed test env cleanup Joe Hershberger
2015-05-06 22:00                   ` [U-Boot] [WORKING PATCH 1/2] sandbox: Use defconfig to enable features Simon Glass
2015-05-07  8:39                     ` Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 19/26] test: Return values from the asserts compatible with cmds Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 20/26] test: dm: Recover the driver model tree after tests Joe Hershberger
2015-05-05 20:58       ` Simon Glass
2015-05-03 20:12     ` [U-Boot] [PATCH v3 21/26] test: env: Add test framework for env Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 22/26] test: env: Add test for verifying env attrs Joe Hershberger
2015-05-03 20:12     ` [U-Boot] [PATCH v3 23/26] test: env: Add a test of the new regex behavior for attrs Joe Hershberger
2015-05-03 20:13     ` [U-Boot] [PATCH v3 24/26] test: dm: Move the dm tests over to the ut command Joe Hershberger
2015-05-05 20:58       ` Simon Glass
2015-05-03 20:13     ` [U-Boot] [PATCH v3 25/26] sandbox: Cleanup order and extra defines in defconfig Joe Hershberger
2015-05-03 20:13     ` [U-Boot] [PATCH v3 26/26] sandbox: Enable env unit tests Joe Hershberger
2015-05-04 18:34     ` [U-Boot] [PATCH v3 00/26] Improve env var handling for net stack Joe Hershberger
2015-05-07  9:48     ` [U-Boot] [PATCH v4 " Joe Hershberger
2015-05-07  9:48       ` [U-Boot] [PATCH v4 01/26] sandbox: Cleanup order and extra defines in defconfig Joe Hershberger
2015-05-07  9:48       ` [U-Boot] [PATCH v4 02/26] sandbox: Use defconfig to enable features Joe Hershberger
2015-05-08 17:36         ` Simon Glass
2015-05-07  9:48       ` [U-Boot] [PATCH v4 03/26] sandbox: Enable some ENV commands Joe Hershberger
2015-05-07  9:48       ` [U-Boot] [PATCH v4 04/26] kconfig: Move REGEX to Kconfig Joe Hershberger
2015-05-07  9:48       ` [U-Boot] [PATCH v4 05/26] env: Fix return values in env_attr_lookup() Joe Hershberger
2015-05-07  9:48       ` [U-Boot] [PATCH v4 06/26] env: Simplify the reverse_strstr() interface Joe Hershberger
2015-05-07  9:48       ` [U-Boot] [PATCH v4 07/26] env: Allow env_attr_walk to pass a priv * to callback Joe Hershberger
2015-05-07  9:48       ` [U-Boot] [PATCH v4 08/26] env: Add regex support to env_attrs Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 09/26] env: Distinguish finer between source of env change Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 10/26] net: Apply default format rules to all ethaddr Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 11/26] net: Use env callbacks for net variables Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 12/26] net: Add default flags for common net env vars Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 13/26] net: Remove duplicate bootfile syncing functionality Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 14/26] net: Handle ethaddr changes as an env callback Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 15/26] test: Generalize the unit test framework Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 16/26] test: Add a common unit test command Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 17/26] test: dm: Move the dm tests over to the ut command Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 18/26] test: Move the unit tests to their own menu Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 19/26] test: dm: Don't bail on all tests if one test fails Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 20/26] test: dm: eth: Handle failed test env cleanup Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 21/26] test: Return values from the asserts compatible with cmds Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 22/26] test: dm: Recover the driver model tree after tests Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 23/26] test: env: Add test framework for env Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 24/26] test: env: Add test for verifying env attrs Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 25/26] test: env: Add a test of the new regex behavior for attrs Joe Hershberger
2015-05-07  9:49       ` [U-Boot] [PATCH v4 26/26] sandbox: Enable env unit tests Joe Hershberger
2015-05-07 22:29       ` [U-Boot] [PATCH v4 00/26] Improve env var handling for net stack Simon Glass
2015-05-19 20:24       ` Joe Hershberger
2015-05-20 14:58       ` Tom Rini
2015-05-20 19:27         ` [U-Boot] [PATCH v5 " Joe Hershberger
2015-05-20 19:27           ` [U-Boot] [PATCH v5 01/26] sandbox: Cleanup order and extra defines in defconfig Joe Hershberger
2015-05-23 12:39             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 02/26] sandbox: Use defconfig to enable features Joe Hershberger
2015-05-23 12:39             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 03/26] sandbox: Enable some ENV commands Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 04/26] env: Fix return values in env_attr_lookup() Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 05/26] env: Simplify the reverse_strstr() interface Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 06/26] env: Allow env_attr_walk to pass a priv * to callback Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 07/26] env: Add regex support to env_attrs Joe Hershberger
2015-05-23 12:42             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 08/26] env: Distinguish finer between source of env change Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 09/26] net: Apply default format rules to all ethaddr Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 10/26] net: Use env callbacks for net variables Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 11/26] net: Add default flags for common net env vars Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 12/26] net: Remove duplicate bootfile syncing functionality Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 13/26] net: Handle ethaddr changes as an env callback Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 14/26] test: Generalize the unit test framework Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 15/26] test: Add a common unit test command Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 16/26] test: dm: Move the dm tests over to the ut command Joe Hershberger
2015-05-23 12:40             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 17/26] test: dm: Move the time test " Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 18/26] test: Move the unit tests to their own menu Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 19/26] test: dm: Don't bail on all tests if one test fails Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 20/26] test: dm: eth: Handle failed test env cleanup Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 21/26] test: Return values from the asserts compatible with cmds Joe Hershberger
2015-05-23 12:42             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 22/26] test: dm: Recover the driver model tree after tests Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 23/26] test: env: Add test framework for env Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 24/26] test: env: Add test for verifying env attrs Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 25/26] test: env: Add a test of the new regex behavior for attrs Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:27           ` [U-Boot] [PATCH v5 26/26] sandbox: Enable env unit tests Joe Hershberger
2015-05-23 12:41             ` Tom Rini
2015-05-20 19:38         ` [U-Boot] [PATCH v4 00/26] Improve env var handling for net stack Joe Hershberger
2015-05-21 13:33           ` Tom Rini
2015-05-21 13:50             ` Joe Hershberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.