Re: Would like know when the tcp sequence no is rollover
Ramana Reddywrites: > Hi all, > > I would like to know, when the TCP sequence no is rollover. > Who will do it. Is it happens in tcp code or through the hardware. > If is it is in the tcp code, can some one please point the code in the > linux kernel > where it happens. Why this interest in TCP sequence numbers? I believe RFC793 is a better source for understanding how this works: It is essential to remember that the actual sequence number space is finite, though very large. This space ranges from 0 to 2**32 - 1. Since the space is finite, all arithmetic dealing with sequence numbers must be performed modulo 2**32. Do you still think you'll find an explicit rollover code path? Why would you write code like that? Bjørn ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Would like know when the tcp sequence no is rollover
Hi all, I would like to know, when the TCP sequence no is rollover. Who will do it. Is it happens in tcp code or through the hardware. If is it is in the tcp code, can some one please point the code in the linux kernel where it happens. Thanks & Regards, Ramana ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Wireless Driver issue (Atheros AR9485)
On Thu, Sep 17, 2015 at 08:54:28AM -0400, David Scaperoth wrote: > I'm attempting to run pm-suspend on my laptop (by shutting my lid and on > command line), and its putting my AR9485 wifi card into a funk (i.e. wlan0 > interface seen through ifconfig never returns upon resume). > > I know theres a lot to this (power management - pm-utils and kernel, > wireless drivers, general linux drivers, and possibly other things), just > need a little direction on which rabbit hole to start down...haha. > > Ive looked through the ath9k and wireless list archives and had no luck > finding the same issue. I have tried different solutions (mostly related > to pm-utils) from ubuntu's forums too. > > an example of where it failed /var/log/pm-powersave.log > >Running hook /usr/lib/pm-utils/power.d/wireless true: > Turning powersave for wlan0 on...Error for wireless request "Set Power > Management" (8B2C) : > SET failed on device wlan0 ; Operation not supported. > Failed. > /usr/lib/pm-utils/power.d/wireless true: success. > > > AND...according to > https://wireless.wiki.kernel.org/en/users/documentation/dynamic-power-save > I tried: > iw dev wlan0 set power_save on > command failed: Operation not supported (-95) > > This is my first post to this list, so I'm not sure what information would > be useful to help find a solution (or workaround). Here goes nothing > (perhaps I should attach text files next time for large diagnostic > information?): > > I built an upstream kernel against gregkh staging tree with a Ubuntu distro > just to see if this would fix my issue and it did not. Either way, here is > some information: > > >> uname -a > Linux xxx 4.2.0+ #1 SMP Sun Sep 6 05:53:34 EDT 2015 x86_64 x86_64 x86_64 > GNU/Linux > > >> lsb_release -a > No LSB modules are available. > Distributor ID:Ubuntu > Description:Ubuntu 14.04.3 LTS > Release:14.04 > Codename:trusty > > cat /proc/version > Linux version 4.2.0+ (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) ) #1 > SMP Sun Sep 6 05:53:34 EDT 2015 > > >>lspci -vvnn > > 01:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless Network > Adapter [168c:0032] (rev 01) > Subsystem: Hewlett-Packard Company AR9485/HB125 802.11bgn 1??1 Wi-Fi > Adapter [103c:1838] > > > I could provide more information from lspci and lshw but I'm not sure what > would help (if at all). The strangest thing about the whole matter is that > if I reboot, the card comes back online just fine. > > Thanks again for any help you can provide! > > David Hi David, I recommend you start with the support community of your distribution, which in your case is Ubuntu. https://help.ubuntu.com/community/WifiDocs/WirelessTroubleShootingGuide That has a trouble shooting guide and a link to where to ask if the problem persists. Distribution communities are great to solve issues like this. The Kernel Newbies mailing list focuses in people new to Linux Kernel development. Hopefully your wifi works well soon :) Luis ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: [PATCH 2662/2662] Staging: android: Fix 80 character length
I have created one patch and already submitted. Now I have created another patch for another directory . What should be the subject of patch [Patch 2/2] or just [patch ] ??? On Fri, Sep 18, 2015 at 3:00 PM, punit varawrote: > Thank you sir I will do the same If I would find any patch > > On Fri, Sep 18, 2015 at 2:45 PM, Sudip Mukherjee > wrote: >> usually i will create the patch with git format-patch -1 to generate the >> last patch >> >> On Fri, Sep 18, 2015 at 2:42 PM, punit vara wrote: >>> >>> before changing the file I did git fetch and then git remote update >>> .At that time all patches came automatically with update .Then I >>> simply create patch with git format-patch master..my_local_branch >>> 2662-... >>> >>> That is why subject was like [2662/2662] . >>> >>> On Fri, Sep 18, 2015 at 2:37 PM, Sudip Mukherjee >>> wrote: >>> > I will also do git fetch but numbers will not show. what command you >>> > gave to >>> > generate the patch? >>> > >>> > On Fri, Sep 18, 2015 at 2:26 PM, punit vara wrote: >>> >> >>> >> Sorry sir about that ..I have done git fetch so another 2661 patches >>> >> fetched .that's why mistakenly it subject was like that.I again >>> >> changed patch as you guide and send.Thank you for feedback sir >>> >> >>> >> On Fri, Sep 18, 2015 at 1:52 PM, Sudip Mukherjee >>> >> wrote: >>> >> > On Fri, Sep 18, 2015 at 12:38:21PM +0530, Punit Vara wrote: >>> >> >> This patch is to the Kconfig file which fixes up lines which >>> >> >> exceeded the standard 80 character limitation. >>> >> >> This file also fixes up 3 warnings regarding paragraph. >>> >> >> >>> >> >> Signed-off-by: Punit Vara >>> >> >> --- >>> >> > Your subject says 2662/2662. Then where are your 2661 earlier patches >>> >> > of >>> >> > the series? >>> >> > No, that is wrong. The numbers we use when we submit a series of >>> >> > patches. But for a single patch (1/1) numbers are not required and >>> >> > 2662 >>> >> > is definitely wrong. >>> >> > >>> >> > regards >>> >> > sudip >>> >> >>> >> >>> >> >>> >> -- >>> >> Regards, >>> >> Punit Vara >>> >> 9033553488 >>> > >>> > >>> >>> >>> >>> -- >>> Regards, >>> Punit Vara >>> 9033553488 >> >> > > > > -- > Regards, > Punit Vara > 9033553488 -- Regards, Punit Vara 9033553488 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: [PATCH 2662/2662] Staging: android: Fix 80 character length
On Fri, Sep 18, 2015 at 4:42 PM, punit varawrote: > I have created one patch and already submitted. Now I have created > another patch for another directory . What should be the subject of > patch [Patch 2/2] or just [patch ] ??? If its different, keep it different ;) -- Regards, Karthik Nayak ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
error when make pdfdocs
I git clone and git pull the latest linux kernel. When I make pdfdocs, it reports the following error to me. But I checked the filesystems.xml:14946, no error found. --- PDF Documentation/DocBook/filesystems.pdf Using catalogs: /etc/sgml/catalog Using stylesheet: /usr/share/docbook-utils/docbook-utils.dsl#print Working on: /home/mdl/Repos/linux/Documentation/DocBook/filesystems.xml openjade:/home/mdl/Repos/linux/Documentation/DocBook/filesystems.xml:14946:16:E: end tag for "variablelist" which is not finished Documentation/DocBook/Makefile:131: recipe for target 'Documentation/DocBook/filesystems.pdf' failed make[1]: *** [Documentation/DocBook/filesystems.pdf] Error 8 Makefile:1339: recipe for target 'pdfdocs' failed --- - mudongliang ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Preceding a method call with (void)
On Fri, 18 Sep 2015 17:04:03 +0300, Rami Rosen said: > Well, there are rare cases in the kernel when you add (void) before calling > the method. For example, if the method returns int or other type and you > want to emphasize that you are aware of that and deliberately not check the > return value. > See for example: > http://lxr.free-electrons.com/source/drivers/acpi/acpica/tbxfload.c#L156 The fact something is done in the tree doesn't mean it's *correct*. If you check the tree, there are 80 instances of it being cast to (void), and 9 instances of 'status ='. Now if you go look at the source of the function in drivers/acpi/acpica/utmutex.c we discover that there's 3 or 4 possible return(..) conditions in the function (one only if _DEBUG is defined). Looking at the places that places that bother checking the return code, they all look something like this: nsxfeval.c: status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); nsxfeval.c- if (ACPI_FAILURE(status)) { nsxfeval.c- return (status); nsxfeval.c- } Now, given that 80 other sites don't bother checking, there's a good chance that these 9 call sites shouldn't bother either, and the calling code should be changed to not check the status either, and then make the function definition a void. (Of course a more careful examination of the code should be undertaken, but it's more likely that there's 9 sites that are checking a return code that doesn't actually matter than the chances that it really *does* matter in 9 places but not in 80 others... pgpkz4LKB7Lx3.pgp Description: PGP signature ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Preceding a method call with (void)
Hi, Well, there are rare cases in the kernel when you add (void) before calling the method. For example, if the method returns int or other type and you want to emphasize that you are aware of that and deliberately not check the return value. See for example: http://lxr.free-electrons.com/source/drivers/acpi/acpica/tbxfload.c#L156 Regards, Rami Rosen בתאריך 10 בספט 2015 09:39,כתב: > On Thu, 10 Sep 2015 07:52:49 +0300, Kevin Wilson said: > > > (void) myFunc(param1); > > > > I did not encounter such cases in the kernel code that I read, thus far. > > > > On the other hand, I did not saw in the kernel coding style doc > > anything which prohibits such usage. > > > > If I remember, using (void) before the method name is a way to tell > > explicitly that this method does not return any value, > > but I am not sure as for the exact reasons it is used (in userspace). > > Well, if the function actually returns nothing, in kernel code we usually > declare it as: > > void myFunc( int param1) > { > /* yadda yadda yadda *. > } > > Given that, what reason is there for casting the return value with (void)? > > (And if the function is actually 'int myFunc ( int param1) {...}', > why are you calling it and then ignoring the return value? That's a clue > that you're abusing the API...) > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
[no subject]
By mistake I made some changes to staging-next branch Now I've reverted those changes but I'm getting this message when I checkout to staging-next Your branch is ahead of 'origin/staging-next' by 4 commits. (use "git push" to publish your local commits) How do I fix this? Thanks in advance ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re:
You have made 4 commits on your local branch. You need to remove them by git reset. One way is to do git reset --hard origin/staging-next . Note that this will revert all the changes made by you. On Fri, Sep 18, 2015, 10:53 PM Shraddha Barkewrote: > By mistake I made some changes to staging-next branch > Now I've reverted those changes but I'm getting this message when I > checkout to staging-next > > Your branch is ahead of 'origin/staging-next' by 4 commits. > (use "git push" to publish your local commits) > > How do I fix this? > > Thanks in advance > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re:
On Fri, Sep 18, 2015 at 10:58 PM, Umair Khanwrote: > You have made 4 commits on your local branch. > You need to remove them by git reset. > One way is to do git reset --hard origin/staging-next . > Note that this will revert all the changes made by you. > > Yes. Thanks a lot :) > On Fri, Sep 18, 2015, 10:53 PM Shraddha Barke > wrote: > >> By mistake I made some changes to staging-next branch >> Now I've reverted those changes but I'm getting this message when I >> checkout to staging-next >> >> Your branch is ahead of 'origin/staging-next' by 4 commits. >> (use "git push" to publish your local commits) >> >> How do I fix this? >> >> Thanks in advance >> ___ >> Kernelnewbies mailing list >> Kernelnewbies@kernelnewbies.org >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> > ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies