On Thu, Mar 19, 2015 at 12:55 PM, York Sun york...@freescale.com wrote:
On 03/19/2015 10:19 AM, York Sun wrote:
On 03/19/2015 10:16 AM, Joe Hershberger wrote:
On Thu, Mar 19, 2015 at 11:43 AM, York Sun york...@freescale.com
mailto:york...@freescale.com wrote:
From: Minghuan Lian
through unsigned long going from pointers to
integers and vice versa.
Cc: Joe Hershberger joe.hershber...@gmail.com
Signed-off-by: Thierry Reding tred...@nvidia.com
Fixed checkpatch failures and applied to next, thanks!
-Joe
___
U-Boot mailing list
U
---
Acked-by: Joe Hershberger joe.hershber...@ni.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Hi Simon,
On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng bmeng...@gmail.com wrote:
This series adds a new ethernet driver for the GMAC found on Intel
Topcliff
Platform Controller Hub and enable its support on Intel Crown Bay board.
The series also did some clean up work below:
- Introduce
On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng bmeng...@gmail.com wrote:
README.drivers.eth still refers to the deprecated miiphy_register().
Update the doc to mention new APIs mdio_alloc() and mdio_register().
Signed-off-by: Bin Meng bmeng...@gmail.com
---
Acked-by: Joe Hershberger joe.hershber
On Fri, Mar 20, 2015 at 4:12 AM, Bin Meng bmeng...@gmail.com wrote:
Intel Crown Bay board has one ethernet port connected from Intel
Topcliff PCH. Enable it in the board configuration.
Signed-off-by: Bin Meng bmeng...@gmail.com
---
Reviewed-by: Joe Hershberger joe.hershber...@ni.com
...@gmail.com
---
Acked-by: Joe Hershberger joe.hershber...@ni.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Hi Codrin,
On Wed, Mar 4, 2015 at 2:46 AM, Codrin Constantin Ciubotariu
codrin.ciubota...@freescale.com wrote:
Hi,
Anyone has any comments on this? Please share your thoughts.
Looks good to me.
-Original Message-
From: Codrin Ciubotariu [mailto:codrin.ciubota...@freescale.com]
Hi Michal,
On Fri, Mar 13, 2015 at 7:25 AM, Michal Simek michal.si...@xilinx.com
wrote:
Hi,
I have a question regarding setting mac address for drivers.
Drivers setting up write_hwaddr via eth_write_hwaddr via eth_initialize
which is called from common/board_r.c.
This is because on at
The current implementation exposes the eth_device struct to code that
needs to access the MAC address. Add a wrapper function for this to
abstract away the pointer for this operation.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes
The ethprime env var is used to indicate the starting device if none is
specified in ethact. Also support aliases specified in the ethprime var.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-Fix compile
net_process_received_packet().
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v6:
-Swallow -EAGAIN error in eth_rx()
-Updated function documentation
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/net.h | 6 --
net/eth.c | 15
Add a test for the eth uclass using the sandbox eth driver. Verify basic
functionality of the network stack / eth uclass by exercising the ping
function.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5: None
Many functions returned -1 previously. Change them to return appropriate error
codes.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reported-by: Simon Glass s...@chromium.org
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5: None
Changes in v4:
-New to v4
Previously the net functions would access memory assuming physmem did
not need to be mapped. In sandbox, that's not the case.
Now we map the physmem specified by the user in loadaddr to the buffer
that represents that space.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Acked-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3:
-Reorder dm test makefile
Changes in v2: None
test/dm/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
Many of the functions in net.h were preceded extern needlessly. Removing
them to limit the number of checkpatch.pl complaints.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6:
-Fix compile error on boards with CONFIG_API enabled
Allow network devices to be referred to as eth0 instead of
eth@12345678 when specified in ethact.
Add tests to verify this behavior.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-Added a comment about
First just add support for MAC drivers.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-Add a note to doc/README.drivers.eth about its obsolescence
-Expanded the Kconfig help
-Moved dm/ header
-Use local
()).
-Rebase on top of dm/master
-Remove unused priv struct for sandbox driver
-Removed extra parentheses
-Stop maintaining our own index and use DM seq now that it works for our needs
-Update error codes
-Updated comments
Joe Hershberger (27):
test: dm: Reorder the objects to build
common
Move some things around and organize things so that the driver model
implementation will fit in more easily.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-Fixed warning from missing declaration
Changes
This value is not used by the network stack and is available in the
global data, so stop passing it around. For the one legacy function
that still expects it (init op on old Ethernet drivers) pass in the
global pointer version directly to avoid changing that interface.
Signed-off-by: Joe
This is needed to test the netretry functionality (make the command fail
on a sandbox eth device).
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6:
-Add function comments
-Check array index bounds
Changes in v5:
-Use a function
The return codes in common/cmd_net.c had a number of inconsistencies.
Update them to all use the enum from command.h
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-New to v5
Changes in v4: None
Changes
Make it clear that the helper is checking the addr, not setting it.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
net/eth.c | 13
On some archs masking the parameter is inefficient, so don't use u8.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reported-by: Simon Glass s...@chromium.org
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5: None
Changes in v4:
-New to v4
Changes in v3
to be opened for all IP traffic and be able
to receive at the same time. UDP is far more useful to test with, so it
was selected over ICMP. Ping won't work, but things like TFTP should
work.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes
them yet. halt() is not expected to error.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/net.h | 3 ++-
net/eth.c | 56
In the case of BUILD_NBUILDS 1, MAKEALL would try to print the size
immediately after the u-boot binary is deleted by the call to:
make -s clean
Move the size print to before the clean
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
MAKEALL | 14 +++---
1 file changed, 7
On Wed, Mar 4, 2015 at 12:35 PM, Simon Glass s...@chromium.org wrote:
Hi Joe,
On 3 March 2015 at 19:41, Joe Hershberger joe.hershber...@ni.com wrote:
Take a pass at plumbing errors through to the users of the network stack
Currently only the start() function errors will be returned from
On Wed, Mar 4, 2015 at 12:35 PM, Simon Glass s...@chromium.org wrote:
Hi Joe,
On 3 March 2015 at 19:41, Joe Hershberger joe.hershber...@ni.com wrote:
Stop forcing drivers to call net_process_received_packet() - formerly
called NetReceive(). Now the uclass will handle calling the driver
On Tue, Mar 10, 2015 at 6:31 PM, Simon Glass s...@chromium.org wrote:
Hi Joe,
On 10 March 2015 at 16:28, Joe Hershberger joe.hershber...@gmail.com
wrote:
On Wed, Mar 4, 2015 at 12:35 PM, Simon Glass s...@chromium.org wrote:
Hi Joe,
On 3 March 2015 at 19:41, Joe Hershberger
This is now testable via the eth-raw interface
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5: None
Changes in v4:
-New to v4
Changes in v3: None
Changes in v2: None
include/configs/sandbox.h | 8
Make sure that the ethrotate behavior occurs as expected.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-Added a test for skipping un-probe-able devices
Changes in v4:
-Added testing for ethrotate
:
sudo /sbin/setcap CAP_NET_RAW+ep /path/to/u-boot
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6:
-Addressed nits
Changes in v5:
-Added fallback for setting promiscuous mode
-Added help to Kconfig
-Added more details
Take the opportunity to enforce better names on newly written or
retrofitted Ethernet drivers.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes
Add basic network support to sandbox which includes a network driver.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-Added help to the sandbox eth mock driver Kconfig entry
Changes in v4:
-Cleaned up
In the case where the arch defines a custom map_sysmem(), make sure that
including just mapmem.h is sufficient to have these functions as they
are when the arch does not override it.
Also split the non-arch specific functions out of common.h
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
The sandbox driver will now generate response traffic to exercise the
ping command even when no network exists. This allows the basic data
pathways of the DM to be tested.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
The effect of the netretry env var was recently changed. This test
checks that behavior.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Changes in v5:
-Added comments about test cases
-Switched to function to control
is now changed to retry any failed command
(rotating through the eth adapters if ethrotate != no).
It also defaulted to retry forever. It is now changed to default to not
retry
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v6: None
Hi Tim,
On Fri, Feb 27, 2015 at 8:25 AM, Tim James tim.ja...@macltd.com wrote:
When accessing PHY registers it is often desirable to only update
selected bits, so it is necessary to first read the current value
before writing back an modified value with the relevant bits
updated.
To
Hi Michal,
On Tue, Mar 24, 2015 at 2:41 AM, Joe Hershberger joe.hershber...@ni.com
wrote:
When the ethaddr changes in the env, the hardware should also be updated
so that MAC filtering will work properly without resetting U-Boot.
Also remove the manual calls to set the hwaddr
Some drivers need a chance to manage their receive buffers after the
packet has been handled by the network stack. Add an operation that
will allow the driver to be called in that case.
Reported-by: Simon Glass s...@chromium.org
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
This patch
Hi Sergey,
On Tue, Mar 31, 2015 at 12:17 PM, Sergey Temerkhanov
s.temerkha...@gmail.com wrote:
This commit fixes incorrect DHCP/BOOTP packet layout caused by
'ulong' type size difference on 64 and 32-bit architectures.
It also converts protocol header structures to use explicitly
sized
probed before used by a command (i.e. before
eth_init()).
-Rebase on top of dm/master
-Remove unused priv struct for sandbox driver
-Removed extra parentheses
-Stop maintaining our own index and use DM seq now that it works for our needs
-Update error codes
-Updated comments
Joe Hershberger (27
In the case where the arch defines a custom map_sysmem(), make sure that
including just mapmem.h is sufficient to have these functions as they
are when the arch does not override it.
Also split the non-arch specific functions out of common.h
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
The current implementation exposes the eth_device struct to code that
needs to access the MAC address. Add a wrapper function for this to
abstract away the pointer for this operation.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes
is now changed to retry any failed command
(rotating through the eth adapters if ethrotate != no).
It also defaulted to retry forever. It is now changed to default to not
retry
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
First just add support for MAC drivers.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5:
-Add a note to doc/README.drivers.eth about its obsolescence
-Expanded the Kconfig help
-Moved dm
Move some things around and organize things so that the driver model
implementation will fit in more easily.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5:
-Fixed warning from missing
Allow network devices to be referred to as eth0 instead of
eth@12345678 when specified in ethact.
Add tests to verify this behavior.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5
Make it clear that the helper is checking the addr, not setting it.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
net
Many functions returned -1 previously. Change them to return appropriate error
codes.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reported-by: Simon Glass s...@chromium.org
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
them yet. halt() is not expected to error.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/net.h | 3
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Acked-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3:
-Reorder dm test makefile
Changes in v2: None
test/dm/Makefile | 4 ++--
1 file changed, 2
The effect of the netretry env var was recently changed. This test
checks that behavior.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5:
-Added comments about test cases
-Switched
The ethprime env var is used to indicate the starting device if none is
specified in ethact. Also support aliases specified in the ethprime var.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes
This is needed to test the netretry functionality (make the command fail
on a sandbox eth device).
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6:
-Add function comments
-Check array index bounds
Changes
Make sure that the ethrotate behavior occurs as expected.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5:
-Added a test for skipping un-probe-able devices
Changes in v4:
-Added testing
On some archs masking the parameter is inefficient, so don't use u8.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reported-by: Simon Glass s...@chromium.org
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4:
-New
This value is not used by the network stack and is available in the
global data, so stop passing it around. For the one legacy function
that still expects it (init op on old Ethernet drivers) pass in the
global pointer version directly to avoid changing that interface.
Signed-off-by: Joe
net_process_received_packet().
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v7: None
Changes in v6:
-Swallow -EAGAIN error in eth_rx()
-Updated function documentation
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/net.h | 6 --
net
Previously the net functions would access memory assuming physmem did
not need to be mapped. In sandbox, that's not the case.
Now we map the physmem specified by the user in loadaddr to the buffer
that represents that space.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed
:
sudo /sbin/setcap CAP_NET_RAW+ep /path/to/u-boot
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6:
-Addressed nits
Changes in v5:
-Added fallback for setting promiscuous mode
-Added help to Kconfig
-Added more
Add a test for the eth uclass using the sandbox eth driver. Verify basic
functionality of the network stack / eth uclass by exercising the ping
function.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
to be opened for all IP traffic and be able
to receive at the same time. UDP is far more useful to test with, so it
was selected over ICMP. Ping won't work, but things like TFTP should
work.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes
The return codes in common/cmd_net.c had a number of inconsistencies.
Update them to all use the enum from command.h
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5:
-New to v5
Changes
Many of the functions in net.h were preceded extern needlessly. Removing
them to limit the number of checkpatch.pl complaints.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6:
-Fix compile error on boards
The sandbox driver will now generate response traffic to exercise the
ping command even when no network exists. This allows the basic data
pathways of the DM to be tested.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Add basic network support to sandbox which includes a network driver.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v7: None
Changes in v6: None
Changes in v5:
-Added help to the sandbox eth mock driver Kconfig entry
Changes
Hi Simon,
On Tue, Mar 31, 2015 at 10:32 PM, Simon Glass s...@chromium.org wrote:
Hi Joe,
On 30 March 2015 at 14:44, Joe Hershberger joe.hershber...@ni.com wrote:
Some drivers need a chance to manage their receive buffers after the
packet has been handled by the network stack. Add
On Sun, Mar 1, 2015 at 10:13 AM, Simon Glass s...@chromium.org wrote:
[snip]
- I think the recv() method should change before long. The
NetReceive() call should be made from the uclass since it is common to
all drivers. Then the recv() method can return a packet if it finds
one, but not
Hi Simon,
On Tue, Mar 3, 2015 at 5:14 PM, Simon Glass s...@chromium.org wrote:
Hi Joe,
On 3 March 2015 at 15:29, Joe Hershberger joe.hershber...@gmail.com
wrote:
On Sun, Mar 1, 2015 at 10:13 AM, Simon Glass s...@chromium.org wrote:
[snip]
- I think the recv() method should change
Move some things around and organize things so that the driver model
implementation will fit in more easily.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5:
-Fixed warning from missing declaration
Changes in v4:
-Fix compile
by a command (i.e. before
eth_init()).
-Rebase on top of dm/master
-Remove unused priv struct for sandbox driver
-Removed extra parentheses
-Stop maintaining our own index and use DM seq now that it works for our needs
-Update error codes
-Updated comments
Joe Hershberger (27):
test: dm
Allow network devices to be referred to as eth0 instead of
eth@12345678 when specified in ethact.
Add tests to verify this behavior.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5:
-Added a comment about devname
-Only check
Add a test for the eth uclass using the sandbox eth driver. Verify basic
functionality of the network stack / eth uclass by exercising the ping
function.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5: None
Changes in v4: None
Add basic network support to sandbox which includes a network driver.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5:
-Added help to the sandbox eth mock driver Kconfig entry
Changes in v4:
-Cleaned up sandbox EXTRA_ENV define
Previously the net functions would access memory assuming physmem did
not need to be mapped. In sandbox, that's not the case.
Now we map the physmem specified by the user in loadaddr to the buffer
that represents that space.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes
Make sure that the ethrotate behavior occurs as expected.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5:
-Added a test for skipping un-probe-able devices
Changes in v4:
-Added testing for ethrotate
Changes in v3: None
This is needed to test the netretry functionality (make the command fail
on a sandbox eth device).
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-Use a function call to change mock driver behavior
Changes in v4:
-Add ability to disable ping reply in sandbox eth
In the case where the arch defines a custom map_sysmem(), make sure that
including just common.h is sufficient to have these functions as they
are when the arch does not override it.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-Moved to a separate header mapmem.h
Take the opportunity to enforce better names on newly written or
retrofitted Ethernet drivers.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/net.h | 9 -
net/net.c | 30
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Acked-by: Simon Glass s...@chromium.org
---
Changes in v5: None
Changes in v4: None
Changes in v3:
-Reorder dm test makefile
Changes in v2: None
test/dm/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test
On some archs masking the parameter is inefficient, so don't use u8.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reported-by: Simon Glass s...@chromium.org
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5: None
Changes in v4:
-New to v4
Changes in v3: None
Changes in v2
The ethprime env var is used to indicate the starting device if none is
specified in ethact. Also support aliases specified in the ethprime var.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5:
-Fix compile error on !DM_ETH
The sandbox driver will now generate response traffic to exercise the
ping command even when no network exists. This allows the basic data
pathways of the DM to be tested.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5
Many of the functions in net.h were preceded extern needlessly. Removing
them to limit the number of checkpatch.pl complaints.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes
Make it clear that the helper is checking the addr, not setting it.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
net/eth.c | 13 -
1 file changed
The effect of the netretry env var was recently changed. This test
checks that behavior.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-Added comments about test cases
-Switched to function to control state of mock driver
Changes in v4:
-Updated expected behavior
The return codes in common/cmd_net.c had a number of inconsistencies.
Update them to all use the enum from command.h
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes in v2: None
common/cmd_net.c | 45
First just add support for MAC drivers.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-Add a note to doc/README.drivers.eth about its obsolescence
-Expanded the Kconfig help
-Moved dm/ header
-Use local var for priv in eth_get_dev()
Changes in v4:
--Don't prevent
them yet. halt() is not expected to error.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/net.h | 3 ++-
net/eth.c | 56
net
:
sudo /sbin/setcap CAP_NET_RAW+ep u-boot
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-Added fallback for setting promiscuous mode
-Added help to Kconfig
-Added more details and examples in the README
-Check for NULL when reading fdt for host interface
-Check
is now changed to retry any failed command
(rotating through the eth adapters if ethrotate != no).
It also defaulted to retry forever. It is now changed to default to not
retry
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5: None
This is now testable via the eth-raw interface
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5: None
Changes in v4:
-New to v4
Changes in v3: None
Changes in v2: None
include/configs/sandbox.h | 8
1 file changed, 8
net_process_received_packet().
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
Changes in v5:
-New to v5
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/net.h | 2 +-
net/eth.c | 13 -
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/include/net.h
Many functions returned -1 previously. Change them to return appropriate error
codes.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
Reported-by: Simon Glass s...@chromium.org
Reviewed-by: Simon Glass s...@chromium.org
---
Changes in v5: None
Changes in v4:
-New to v4
Changes in v3
This value is not used by the network stack and is available in the
global data, so stop passing it around. For the one legacy function
that still expects it (init op on old Ethernet drivers) pass in the
global pointer version directly to avoid changing that interface.
Signed-off-by: Joe
1001 - 1100 of 4619 matches
Mail list logo