Re: [U-Boot] [PATCH v3 07/16] common/cmd_ethsw: Add generic commands for Ethernet Switches

2015-08-09 Thread Joe Hershberger
Hi York, On Fri, Aug 7, 2015 at 5:58 PM, York Sun wrote: > On 08/07/2015 01:18 PM, Joe Hershberger wrote: > > >>> + } >>> + >>> + /* if all our optional command's keywords perfectly match an >>> +* optional pattern, then we can move to the next defined

Re: [U-Boot] [PATCH v3 07/16] common/cmd_ethsw: Add generic commands for Ethernet Switches

2015-08-07 Thread York Sun
On 08/07/2015 01:18 PM, Joe Hershberger wrote: >> + } >> + >> + /* if all our optional command's keywords perfectly match an >> +* optional pattern, then we can move to the next defined >> +* keywords in our command; remember the one tha

Re: [U-Boot] [PATCH v3 07/16] common/cmd_ethsw: Add generic commands for Ethernet Switches

2015-08-07 Thread Joe Hershberger
Hi Codrin, On Fri, Jul 24, 2015 at 8:55 AM, Codrin Ciubotariu wrote: > This patch creates a flexible parser for Ethernet Switch > configurations that should support complex commands. > The parser searches for predefined keywords in the command > and calls the proper function when a match is found

[U-Boot] [PATCH v3 07/16] common/cmd_ethsw: Add generic commands for Ethernet Switches

2015-07-24 Thread Codrin Ciubotariu
This patch creates a flexible parser for Ethernet Switch configurations that should support complex commands. The parser searches for predefined keywords in the command and calls the proper function when a match is found. Also, the parser allows for optional keywords, such as "port", to apply the c