- 27 Feb, 2017 1 commit
-
-
Adam Wujek authored
Another try to fix makefile Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 24 Feb, 2017 3 commits
-
-
Alessandro Rubini authored
A stupid error when changing data type. Pity me. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 23 Feb, 2017 9 commits
-
-
Alessandro Rubini authored
At frame level 1, we should print tx/rx timestamps we get. Also, fix the printout to use %llx for the "secs" field, now that is is 64 bits (2038 is coming). Meanwhile, remove some redundant "if (t)", because all frame operations have called with a valid timestamp pointer. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> bah! next commit Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This bug was introduced in commit 4c6953fb unix and wrs socket: open in non-blocking mode and report ... because I unwillingly removed the ptpdump feature for outbount udp frames. This puts back in place the lost message. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Adam Wujek authored
To avoid triggering .config target at clean. Put explicit target for $(CURDIR)/.config Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
This change is needed by WRPC, since it wants to include file with shmem version in the assembly file. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
To avoid triggering .config target at clean. All *_defconfig and *_config from configs directory will fall into this target, but not .config. NOTE: target for .config is executed at include of a file (see makefile manual) Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 15 Feb, 2017 1 commit
-
-
Adam Wujek authored
In wrpc's SNMP we store an offset between beginning of a structure and particullar field. To save memory we store this offset as a uint8_t, which limits the offset of a filed to 255 bytes. It was necessary to move following fields below 255 offset: --n_err_state --n_err_offset --n_err_delta_rtt Compiling wrpc-sw with an offset greater than 255, a compiler prints warnings like: lib/snmp.c:405:2: warning: large integer implicitly truncated to unsigned type Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 14 Feb, 2017 1 commit
-
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 13 Feb, 2017 1 commit
-
-
Adam Wujek authored
To avoid triggering .config target at clean Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 03 Feb, 2017 1 commit
-
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 31 Jan, 2017 11 commits
-
-
Alessandro Rubini authored
Intermediate commits in the branch do not work or do not even build, but I'd better keep the various parts separate. We now have a unified "struct pp_time" everywhere, so se avoid a number of conversions, some code is more readable and we are eventually free from the 2038 bug. All time is now represented as 64b seconds and 64b scaled_nsecs. The scaling is 16 bits, like the correctionField, which is now added directly to the time stamps. Please expect some more housekeeping edits in the area, like factorizing commong code and constants, or removing fields that are not needed any more.
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Conflicts: time-bare/bare-socket.c
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Commit only build for arch-unix (and no tools either) This simplifies a lot the calculations. - all times are now living in a single structure - all fields are signed and 64-bit long - the 2038 bug is over (we still had 32-bit seconds) - no overflow in math or unexplained "unsigned" appearing Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Adam Wujek authored
Saves ~150 bytes Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 17 Jan, 2017 1 commit
-
-
Alessandro Rubini authored
If we warn about an ignored frame we'd better tell which one. Also, if it's the hook->servo that ate it, do not warn. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 13 Jan, 2017 2 commits
-
-
Alessandro Rubini authored
Building with musl was spitting errors for redefined data structures. Use the standard headers when available (I found not alternatives to linux/if_packet.h, but it spits no error). Then, ifr.ifr_data is "caddr_t" not "void *" in musl, so cast the pointer being assigned to silent a warning. Finally, the fields of udphdr in musl use different names unless wi add _GNU_SOURCE -- most likely musl is more posixly-correct, I didn't check. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 15 Dec, 2016 1 commit
-
-
Adam Wujek authored
Commit copied from the WRS. wrs_shm_get have to close file descriptors when it fails to open shmem. Otherwise program which tries to open shmem will keep opening file descriptors. Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 12 Dec, 2016 1 commit
-
-
Adam Wujek authored
Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 07 Dec, 2016 3 commits
-
-
Adam Wujek authored
--Add a new function dump_vlan to print vlan number --To be able to read aux data use recvmsg instead of recvfrom --For incoming data use aux to read VLAN number --For outgoing use VLAN header Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--Read VLAN number from aux; network driver strips VLAN information from the frame --Remove a hack from common-fun.c fro WRS, it is not needed anymore; even for WRS we read VLAN from aux Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
Grzegorz Daniluk authored
Otherwise it breaks Minipc and wr_mon cannot start.
-
- 03 Dec, 2016 3 commits
-
-
Alessandro Rubini authored
commit 168655e6 fsm: when no frame, set msgtype to PPM_NO_MESSAGE was good, but I didn't notice that pp_packet_prefilter() may force a packet drop. This moves the assignemento of PPM_NO_MESSAGE to a later place, just before calling the state machine. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 02 Dec, 2016 1 commit
-
-
Alessandro Rubini authored
The main problem was introduced by: d2a57023 std-servo: fix initial jump for p2p slaves There, we falled back on unix->get_time to make adjustments if hal->get_time failed. Only happens as non-wr slave. Actually, the get_time call has never been implemented in the hal, and we always falled on unix time. But if frames are timestamped with WR time, we can adjust based on Unix time. We now read WR time internally, waiting for something better (we have constant addresses in here). Note: we are still unable to steer frequency, despite the efforts (and it used to work, ages ago). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-