History log of /drivers/staging/bcm/Bcmnet.c
Revision Date Author Comments
7f90417bb9c7f4638f87d75a24a22afc7cebc100 27-Aug-2014 Matthias Beyer <mail@beyermatthias.de> Staging: bcm: Bcmnet.c: Renamed variable: "IntfAdapter" -> "intf_ad"

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9dd1e5542c1f1bbec2f66e30470b529cf8e30ad6 27-Aug-2014 Matthias Beyer <mail@beyermatthias.de> Staging: bcm: Bcmnet.c: Renamed variable: "psIntfAdapter" -> "intf_ad"

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
d07b030130b94dfa527e010b66f0162699377035 27-Aug-2014 Matthias Beyer <mail@beyermatthias.de> Staging: bcm: Bcmnet.c: Renamed variable: "Adapter" -> "ad"

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
99932d4fc03a13bb3e94938fe25458fabc8f2fc3 16-Feb-2014 Daniel Borkmann <dborkman@redhat.com> netdevice: add queue selection fallback handler for ndo_select_queue

Add a new argument for ndo_select_queue() callback that passes a
fallback handler. This gets invoked through netdev_pick_tx();
fallback handler is currently __netdev_pick_tx() as most drivers
invoke this function within their customized implementation in
case for skbs that don't need any special handling. This fallback
handler can then be replaced on other call-sites with different
queue selection methods (e.g. in packet sockets, pktgen etc).

This also has the nice side-effect that __netdev_pick_tx() is
then only invoked from netdev_pick_tx() and export of that
function to modules can be undone.

Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
f663dd9aaf9ed124f25f0f8452edf238f087ad50 10-Jan-2014 Jason Wang <jasowang@redhat.com> net: core: explicitly select a txq before doing l2 forwarding

Currently, the tx queue were selected implicitly in ndo_dfwd_start_xmit(). The
will cause several issues:

- NETIF_F_LLTX were removed for macvlan, so txq lock were done for macvlan
instead of lower device which misses the necessary txq synchronization for
lower device such as txq stopping or frozen required by dev watchdog or
control path.
- dev_hard_start_xmit() was called with NULL txq which bypasses the net device
watchdog.
- dev_hard_start_xmit() does not check txq everywhere which will lead a crash
when tso is disabled for lower device.

Fix this by explicitly introducing a new param for .ndo_select_queue() for just
selecting queues in the case of l2 forwarding offload. netdev_pick_tx() was also
extended to accept this parameter and dev_queue_xmit_accel() was used to do l2
forwarding transmission.

With this fixes, NETIF_F_LLTX could be preserved for macvlan and there's no need
to check txq against NULL in dev_hard_start_xmit(). Also there's no need to keep
a dedicated ndo_dfwd_start_xmit() and we can just reuse the code of
dev_queue_xmit() to do the transmission.

In the future, it was also required for macvtap l2 forwarding support since it
provides a necessary synchronization method.

Cc: John Fastabend <john.r.fastabend@intel.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: e1000-devel@lists.sourceforge.net
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
f70c8a91cd0e743d0531a158d939bbdb6c0874dc 28-Oct-2013 Lisa Nguyen <lisa@xenapiadmin.com> staging: bcm: Replace FALSE with false

Replace user-defined type FALSE with C defined false keyword.

Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
95a7a86ad85e14ca3364a6007be280f3a6f8a7a6 07-Oct-2013 Ebru Akagunduz <ebru.akagunduz@gmail.com> Staging: bcm: line over 80 characters in Bcmnet.c

Fix checkpatch.pl issues with line over 80 characters in Bcmnet.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7826d43f2db45c9305a6e0ba165650e1a203f517 06-Jan-2013 Jiri Pirko <jiri@resnulli.us> ethtool: fix drvinfo strings set in drivers

Use strlcpy where possible to ensure the string is \0 terminated.
Use always sizeof(string) instead of 32, ETHTOOL_BUSINFO_LEN
and custom defines.
Use snprintf instead of sprint.
Remove unnecessary inits of ->fw_version
Remove unnecessary inits of drvinfo struct.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
d6861cfef2e42fecd5f0d51554493e45df6612a6 02-Nov-2012 Kevin McKinney <klmckinney1@gmail.com> Staging: bcm: Remove typedef for _S_INTERFACE_ADAPTER and call directly.

This patch removes typedef for
_S_INTERFACE_ADAPTER, changes the
name of the struct to bcm_interface_adapter.
In addition, any calls to typedefs
S_INTERFACE_ADAPTER, or *PS_INTERFACE_ADAPTER
are changed to call the struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2979460d7aba1dac3452edcacd7b8c4cfcf06067 26-May-2012 Kevin McKinney <klmckinney1@gmail.com> Staging: bcm: Remove typedef for _MINI_ADAPTER and call directly.

This patch removes typedef for _MINI_ADAPTER, changes the
name of the struct from _MINI_ADAPTER to bcm_mini_adapter.
In addition, any calls to the following typedefs
"MINI_ADAPTER, *PMINI_ADAPTER" are changed to call
the struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
00b6fb2e31ac668795857c9609adc11e7964ed5a 09-Mar-2011 Vinay Sawal <vinaysawal@gmail.com> Staging: bcm: Bcmnet: fixed checkpatch script reported issues

Fixed all issues reported by checkpatch script on this file.

Signed-off-by: Vinay Sawal <vinaysawal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
4ea4f7a0d3d7a9961bf77f0860df8dd4a213b8a3 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: change startup messages

Change the regsister/unregister routines to generate better
messages, and control arrival of new frames when USB device is
unplugged.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
cacd92222dd4e04424fa532cf1a222e67c30709b 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: statistics and transmit queue changes

Use standard network statistics variables and routines.
Transmit counters are per queue, and skb mapping is already in
skb and does not need to be recomputed. Move SearchVcId to only
place it is used.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
1da9badcf02dd6532df9bde8fc05648e74982f2c 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: allow multicast/broadcast

Even though wimax isn't really a broadcast medium, pretend it is.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
9ec4475bf10bb2c30cd5e927bc453aa307f58123 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: debug message format changes

Add more debug messages and make them similar to other drivers

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
2d08748ae53bf07fe6fcaf4f3d40449b471ce351 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: module initialization

Get rid of boot messages and put in correct place.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
4fd64dd0c1b9317ffe6fdaf3de788e14df880d8d 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: add network device message level control

Provide standard interface to control verbosity of debug messages

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
46c3790eb523931a803bb3c28c5bf8bbfc8acf48 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: convert to kernel coding style

Change indentation etc, to conform to acceptable kernel style

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
5afb5145a13ac26f3c7ab273140a83958bc038f0 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: remove useless debug function entry messages

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
937110581650eaa517f045fb7b86b9828ba693ad 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: support multiple queues

Current kernels have multi-queue support which can be used by
this device. This has the advantage that a single type of traffic
will not block other types.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
26a0e39ac8ed1f38b31baeb901bc76501466d34e 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: fold unregister_netdevice into AdapterFree

The function unregister_netdevice only called unregister_netdev.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
7441698fe9eb0eb473cf1699d9cd8dd06dfeaf77 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: remove ARP spoofing

Linux support NOARP flag, so the whole Arp spoofing routines
are not needed.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
e614e28eac1afcdc3d1275f3e1478aa3e5acc500 01-Nov-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: remove indirection to Adapter structure

Allocate Adapter structure as part of network device.

Signed-off-by: Stephen Hemminber <shemminger@vyatta.com>
2515ab628f227b0711393993fe3228e167cc988f 30-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: Add proper carrier and link management

Start with carrier off.
Don't track up/down status in driver private flag.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
d7affd0f58c9f68441b4ce631d07fad2e6a448db 30-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: reduce transmit queue len

Reduce transmit queue length to avoid excess buffering

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
d21d6dde0280f0897ce6de1948bfaa5633867b28 30-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: add ethtool support

This adds basic ethtool support to get driver info and settings

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
0ad008fcbc39572ab7078975cdf7e902fbc39ce6 30-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: cleanup network device setup

Change how network device is setup:
* set pointer to device object so sysfs has eth0/device symlink
* set network device type
* eliminate all the compatiablity with older kernels.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
92bc60580e55d18494a23ba8ae642a464ebfd7a6 29-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: get rid of OS dependent data structure

The only part of this structure still used was the network
device stats, and in recent kernel these are available in
network device itself.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
d52db0b4b34410019e1546e3ccbe761b9e4ddd76 29-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: eliminate network registered state variable

Just use presence of pointer

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
3705a843bd98b3ccb7c4b6addfc182fe805a73ed 29-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: remove bogus network device notifier

Network device should not be messing with refcounts directly.
See Documentation/networking/netdevices.txt

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
91d29ee1a82fedcd7d1bbf24007b31a49c47e90a 29-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: remove ifdef's

There were a lot of ifdef's for driver options which have no
configuration options. Choose the current value and remove the
ifdef.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
2e44f765dfd3a8592c2d6b6005be061eccdee137 29-Oct-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> beceem: add module information

Add description and version information to the driver.
Make USB device table exported as alias so device will be
autoloaded. Get rid of useless noise message on boot.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
eebfc6055aba312f8b620a58fe1c23471cdcd149 28-Oct-2010 Greg Kroah-Hartman <gregkh@suse.de> Staging: bcm: fix up network device reference counting

The way network devices are reference counted does not include poking
around in the reference count itself. This breaks when the reference
count is changed to be a different type. Fix the driver to do the
proper function calls instead.

Cc: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
44a17eff844d92421c8b568c84df29735e1e45f9 30-Sep-2010 Arnd Bergmann <arnd@arndb.de> staging/bcm: add sparse annotations

This marks up the code where sparse complains in most cases.
Most of the changes are in the ioctl handling code, which
gets __user annotations, finding one unchecked user access.

The rest is mostly about marking functions static when they
are only used in one file.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
9f1c75ac2dba752ad3734bd3ffab805a6a3fbeda 30-Sep-2010 Arnd Bergmann <arnd@arndb.de> staging/bcm: fix most build warnings

This removes all warnings I get on a 64 bit build except
for those that look unfixable, where we convert a pointer
to a 32 bit integer and change its byte order!

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
f8942e07a3db9d82e8fb11d3d494876b8bae9ff9 08-Sep-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> staging: Beeceem USB Wimax driver

The Sprint 4G network uses a Wimax dongle with Beecem
chipset. The driver is typical of out of tree drivers, but
maybe useful for people, and the hardware is readily available.

Here is a staging ready version (i.e warts and all)

0. Started with Rel_5.2.7.3P1_USB from Sprint4GDeveloperPack-1.1
1. Consolidated files in staging
2. Remove Dos cr/lf
3. Remove unnecessary ioctl from usbbcm_fops

Applied patches that were in the developer pack, surprising
there were ones for 2.6.35 already.

This is compile tested only, see TODO for what still needs
to be done.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>