Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
W
White Rabbit Switch - Gateware
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 8
    • Issues 8
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • Wiki
    • Wiki
  • image/svg+xml
    Discourse
    • Discourse
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Projects
  • White Rabbit Switch - Gateware
  • Issues
  • #1

Closed
Open
Opened Sep 12, 2018 by Adam Wujek@awujek💬
  • Report abuse
  • New issue
Report abuse New issue

Port mirroring does not work

The performed test had the following setup:
--a traffic running on port 1 (PTP, LLDP and application)
--sniffer connected to the port 2

Expected result was that all the traffic will be redirected from port 1 to port 2.
Configuration of a switch:

# disable port mirroring in case it was enabled
# read RX_CTR register
devmem 0x10060014 32
# remove flag 0x20 (MR_ENA) from the given result (0x19 & ~0x20 = 0x30)
devmem 0x10060014 32 0x19

# Configure destination port to port 2
devmem 0x10060024 32 0
devmem 0x10060028 32 0x2

# Configure reception traffic mirror source to port 1
devmem 0x10060024 32 2
devmem 0x10060028 32 0x1

# Configure transmission traffic mirror source
devmem 0x10060024 32 3
devmem 0x10060028 32 0x1

# Enable port mirroring in case it was enabled
# read RX_CTR register
devmem 0x10060014 32
# add flag 0x20 (MR_ENA) to the given result (0x19 | 0x20 = 0x30)
devmem 0x10060014 32 0x39

Additional observations:
--on a port 2, LLDP packets were transmitted from CPU (should not happen)

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
2
Labels
Done v6.0
Assign labels
  • View project labels
Reference: project/wr-switch-hdl#1