From: Saul Wold <sgw@linux.intel.com>
To: Radu Moisan <radu.moisan@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 16/17] watchdog: Upgrade to v5.13
Date: Fri, 15 Mar 2013 07:02:10 -0700 [thread overview]
Message-ID: <514329E2.6030708@linux.intel.com> (raw)
In-Reply-To: <3ee9379d343ea992c82f870cbf579ebf26cf542a.1363283478.git.radu.moisan@intel.com>
On 03/14/2013 10:55 AM, Radu Moisan wrote:
> Signed-off-by: Radu Moisan <radu.moisan@intel.com>
> ---
> .../watchdog/files/fix-ping-failure.patch | 74 --------------------
You need to include WHY you removed the patch in the commit message,
also it seems below you did not remove it from the SRC_URI.
Also, Khem Raj posted a package update to this on 3/11.
Sau!
> .../{watchdog_5.12.bb => watchdog_5.13.bb} | 6 +-
> 2 files changed, 3 insertions(+), 77 deletions(-)
> delete mode 100644 meta/recipes-extended/watchdog/files/fix-ping-failure.patch
> rename meta/recipes-extended/watchdog/{watchdog_5.12.bb => watchdog_5.13.bb} (79%)
>
> diff --git a/meta/recipes-extended/watchdog/files/fix-ping-failure.patch b/meta/recipes-extended/watchdog/files/fix-ping-failure.patch
> deleted file mode 100644
> index c6ee843..0000000
> --- a/meta/recipes-extended/watchdog/files/fix-ping-failure.patch
> +++ /dev/null
> @@ -1,74 +0,0 @@
> -Fix ping mode failure
> -
> -Upstream-Status: Pending
> -
> -When watchdog works on ping mode, the system will be rebooted since
> -watchdog can not receive the expected ECOREPLY on a setting interval.
> -
> -Ping mode uses a raw socket to send a ECO packet, then uses select()
> -to wait and recvfrom() to receive the ECOREPLY packet, if select()
> -shows the data is ready, and the data is not the expected ECOREPLY,
> -and waiting time is not overdue, it will continue use select() and
> -recvfrom().
> -
> -Problem is that the raw socket can receive any icmp packets, if we do
> -not set filters, and there are many icmp packets on socket, this
> -program will not find its interested ECOREPLY packet in a special
> -interval, which makes the ping mode fail.
> -
> -
> -Other program is that watchdog sometime can not reach the call of
> -recvfrom to try to receive packets since tv_sec of struct timeval
> -of select parameter is 0.
> -
> -The timeout of select() is the result of ping interval minusing the
> -time of calling gettimeofday spending, when ping interval is 1 second,
> -and the call of gettimeofday() spends several useconds, the tv_sec of
> -struct timeval of select parameter must be 0, at that condition, we
> -should it is valid of tv_sec of struct timeval of select parameter be 0
> -
> -Signed-off-by: Roy.Li <rongqing.li@windriver.com>
> ----
> - src/net.c | 2 +-
> - src/watchdog.c | 5 ++++-
> - 2 files changed, 5 insertions(+), 2 deletions(-)
> -
> ---- a/src/net.c
> -+++ b/src/net.c
> -@@ -118,7 +118,7 @@ int check_net(char *target, int sock_fp,
> - dtimeout.tv_usec -= 1000000;
> - dtimeout.tv_sec++;
> - }
> -- if (dtimeout.tv_sec <= 0)
> -+ if (dtimeout.tv_sec < 0)
> - break;
> - #if USE_SYSLOG
> - if (verbose && logtick && ticker == 1)
> ---- a/src/watchdog.c
> -+++ b/src/watchdog.c
> -@@ -28,6 +28,7 @@
> - #include <sys/types.h>
> - #include <sys/ioctl.h>
> - #include <linux/oom.h>
> -+#include <linux/icmp.h>
> - #include <linux/watchdog.h>
> - #include <string.h>
> -
> -@@ -567,6 +568,8 @@ int main(int argc, char *const argv[])
> - pid_t child_pid;
> - int oom_adjusted = 0;
> - struct stat s;
> -+ struct icmp_filter filt;
> -+ filt.data = ~(1<<ICMP_ECHOREPLY);
> -
> - #if USE_SYSLOG
> - char *opts = "d:i:n:Ffsvbql:p:t:c:r:m:a:";
> -@@ -703,7 +706,7 @@ int main(int argc, char *const argv[])
> - perror(progname);
> - exit(1);
> - }
> --
> -+ setsockopt(net->sock_fp, SOL_RAW, ICMP_FILTER, (char*)&filt, sizeof(filt));
> - /* this is necessary for broadcast pings to work */
> - (void) setsockopt(net->sock_fp, SOL_SOCKET, SO_BROADCAST, (char *)&hold, sizeof(hold));
> -
> diff --git a/meta/recipes-extended/watchdog/watchdog_5.12.bb b/meta/recipes-extended/watchdog/watchdog_5.13.bb
> similarity index 79%
> rename from meta/recipes-extended/watchdog/watchdog_5.12.bb
> rename to meta/recipes-extended/watchdog/watchdog_5.13.bb
> index 78262b8..633718e 100644
> --- a/meta/recipes-extended/watchdog/watchdog_5.12.bb
> +++ b/meta/recipes-extended/watchdog/watchdog_5.13.bb
> @@ -8,13 +8,13 @@ BUGTRACKER = "http://sourceforge.net/tracker/?group_id=172030&atid=860194"
> LICENSE = "GPL-2.0+"
> LIC_FILES_CHKSUM = "file://COPYING;md5=ecc0551bf54ad97f6b541720f84d6569"
>
> -PR = "r1"
> +PR = "r0"
>
> SRC_URI = "${SOURCEFORGE_MIRROR}/watchdog/watchdog-${PV}.tar.gz \
> file://fix-ping-failure.patch"
>
> -SRC_URI[md5sum] = "cea28bea70e54f3625062bc808aef9af"
> -SRC_URI[sha256sum] = "862d5da6ab34568bbd4ea695316f063fecabe107d0939ceea6c67c9ec0b1a08e"
> +SRC_URI[md5sum] = "153455f008f1cf8f65f6ad9586a21ff1"
> +SRC_URI[sha256sum] = "141e0faf3ee4d8187a6ff4e00b18ef7b7a4ce432a2d4c8a6e6fdc62507fc6eb0"
>
> inherit autotools
>
>
next prev parent reply other threads:[~2013-03-15 14:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 17:54 [PATCH 00/17] Package Upgrades Radu Moisan
2013-03-14 17:55 ` [PATCH 01/17] rxvt-unicode: Upgrade to v9.17 Radu Moisan
2013-03-14 17:55 ` [PATCH 02/17] iputils: Upgrade to v20121221 Radu Moisan
2013-03-16 23:57 ` Saul Wold
2013-03-14 17:55 ` [PATCH 03/17] gawk: Upgrade to v4.0.2 Radu Moisan
2013-03-14 17:55 ` [PATCH 04/17] tzdata: Upgrade to v2013a Radu Moisan
2013-03-15 6:04 ` Saul Wold
2013-03-14 17:55 ` [PATCH 05/17] ed: Upgrade to v1.7 Radu Moisan
2013-03-14 17:55 ` [PATCH 06/17] u-boo-fw-utils: Upgrade to v2013.01.01 Radu Moisan
2013-03-14 17:55 ` [PATCH 07/17] u-boot-mkimage: " Radu Moisan
2013-03-14 17:55 ` [PATCH 08/17] u-boot: " Radu Moisan
2013-03-14 17:55 ` [PATCH 09/17] atk: Upgrade to v 2.7.91 Radu Moisan
2013-03-16 23:54 ` Saul Wold
2013-03-14 17:55 ` [PATCH 10/17] hdparm: Upgrade to v9.43 Radu Moisan
2013-03-14 17:55 ` [PATCH 11/17] cronie: Upgrade to v1.4.9 Radu Moisan
2013-03-14 17:55 ` [PATCH 12/17] systemtap: Upgrade to v2.1 Radu Moisan
2013-03-14 17:55 ` [PATCH 13/17] liburcu: Upgrade to v0.7.6 Radu Moisan
2013-03-14 17:55 ` [PATCH 14/17] babeltrace: Upgrade to v1.0.3 Radu Moisan
2013-03-14 17:55 ` [PATCH 15/17] apr-util: Upgrade to v1.5.1 Radu Moisan
2013-03-14 17:55 ` [PATCH 16/17] watchdog: Upgrade to v5.13 Radu Moisan
2013-03-15 14:02 ` Saul Wold [this message]
2013-03-14 17:55 ` [PATCH 17/17] mobile-broadband-provider-info: Upgrade to v20120614 Radu Moisan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=514329E2.6030708@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=radu.moisan@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox