Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
31
Issues
31
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
bb632219
Commit
bb632219
authored
Jul 29, 2019
by
Miguel Jimenez Lopez
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pfilter-builder: ARP & ICMP traffics should be re-directed to the external fabric interface
to reach external CPU in the WR-NIC architecture.
parent
42bed9b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pfilter-builder.c
tools/pfilter-builder.c
+4
-4
No files found.
tools/pfilter-builder.c
View file @
bb632219
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
the internal fabric. The frame, in the fabric, is prefixed with
the internal fabric. The frame, in the fabric, is prefixed with
a status word that includes the class bits.
a status word that includes the class bits.
The CPU is expected to receive PTP, ICMP
, ARP
and DHCP replies (so
The CPU is expected to receive PTP, ICMP and DHCP replies (so
local "bootpc" port).
local "bootpc" port).
The fabric should receive Etherbone (i.e. UDP port 0xebd0), the
The fabric should receive Etherbone (i.e. UDP port 0xebd0), the
...
@@ -413,9 +413,9 @@ void pfilter_init_novlan(char *fname)
...
@@ -413,9 +413,9 @@ void pfilter_init_novlan(char *fname)
pfilter_cmp
(
11
,
0x0011
,
0x00ff
,
MOV
,
FRAME_UDP
);
pfilter_cmp
(
11
,
0x0011
,
0x00ff
,
MOV
,
FRAME_UDP
);
pfilter_logic2
(
FRAME_UDP
,
FRAME_UDP
,
AND
,
FRAME_IP_OK
);
pfilter_logic2
(
FRAME_UDP
,
FRAME_UDP
,
AND
,
FRAME_IP_OK
);
/* For CPU:
arp or
icmp unicast or ptp (or latency) */
/* For CPU: icmp unicast or ptp (or latency) */
pfilter_logic2
(
FRAME_FOR_CPU
,
FRAME_TYPE_ARP
,
OR
,
FRAME_TYPE_PTP2
);
/* Now, ARP & ICMP traffic are bypassed to the external fabric (NIC) */
pfilter_logic
3
(
FRAME_FOR_CPU
,
FRAME_IP_OK
,
AND
,
FRAME_ICMP
,
OR
,
FRAME_FOR_CPU
);
pfilter_logic
2
(
FRAME_FOR_CPU
,
FRAME_TYPE_PTP2
,
MOV
,
R_ZERO
);
/* Now look in UDP ports: at offset 18 (14 + 20 + 8 = 36) */
/* Now look in UDP ports: at offset 18 (14 + 20 + 8 = 36) */
pfilter_cmp
(
18
,
0x0000
,
0xff00
,
MOV
,
PORT_UDP_HOST
);
/* ports 0-255 */
pfilter_cmp
(
18
,
0x0000
,
0xff00
,
MOV
,
PORT_UDP_HOST
);
/* ports 0-255 */
...
...
Benoit Rat
@benoit
mentioned in merge request
!1 (merged)
·
Nov 04, 2019
mentioned in merge request
!1 (merged)
mentioned in merge request !1
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment