[U-Boot] [PATCH v4 00/26] Improve env var handling for net stack

Joe Hershberger
2015-05-19T20:24:53Z

Hi Tom,

On Thu, May 7, 2015 at 4:48 AM, Joe Hershberger <joe.hershberger@ni.com> wrote:
> 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.
>
> Also added a test command to host unit tests for the env functions.
>
> Changes in v4:
> -Fixed bisectability issue
> -New for version 4
>
> Changes in v3:
> -Moved test from env subcommand to ut subcommand
> -New for version 3
>
> Changes in v2:
> -Added comments about the use of .flags in the dm eth test
> -Added description to README
> -Fix bisectability issue
> -Fix corner case in reverse_name_search() where searched starts with ' '
> -New for version 2
> -Simplified test for H_PROGRAMMATIC
>
> Joe Hershberger (26):
> sandbox: Cleanup order and extra defines in defconfig
> sandbox: Use defconfig to enable features
> sandbox: Enable some ENV commands
> kconfig: Move REGEX to Kconfig
> 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
> net: Remove duplicate bootfile syncing functionality
> net: Handle ethaddr changes as an env callback
> test: Generalize the unit test framework
> test: Add a common unit test command
> test: dm: Move the dm tests over to the ut command
> test: Move the unit tests to their own menu
> test: dm: Don't bail on all tests if one test fails
> test: dm: eth: Handle failed test env cleanup
> test: Return values from the asserts compatible with cmds
> test: dm: Recover the driver model tree after tests
> test: env: Add test framework for env
> test: env: Add test for verifying env attrs
> test: env: Add a test of the new regex behavior for attrs
> sandbox: Enable env unit tests

Please pull this in.

Thanks,
-Joe