Re: MC 7304 ipv4v6

On Tue, 2015-11-24 at 23:52 +0100, Bjørn Mork wrote:
Bjørn Mork <bjorn mork no> writes:
Dan Williams <dcbw redhat com> writes:
On Tue, 2015-11-24 at 22:51 +0100, Bjørn Mork wrote:

My vote would be sysfs, with values "raw-ip" or "802.3" that you
read and write to the file.  At least then they are human
 It's also easier to use from scripts than parsing ethtool

Maybe even easier with a boolean qmi/raw_ip file, since we are only
to offer two alternatives anyway?  Then you don't have to figure
what strings are accepted, and we won't end up having to parse

Including a demo patch (not tested...) to illustrate what I mean:

 $ cat /sys/class/net/wwan1/qmi/raw_ip 
 # echo Y >/sys/class/net/wwan1/qmi/raw_ip


Well, if we're going to add rawip support, why bother emulating a
netdev at all?  I guess because it's convenient and we don't have to
destroy the existing wwan0 and create some other tun-type device
instead.  But still, seems odd that we'd set raw-ip mode and then
emulate ethernet when all that's really going back and forth is IP.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]