← Documents Documentation/networking/dsa/lan9303.rst GitHub 원문 ↗

Linux 6.18.37 · Networking

LAN9303 Ethernet switch driver

LAN9303 3포트 스위치의 DSA 구성, 브리지 가입에 따른 하드웨어 학습 및 전달 동작과 VLAN 관련 한계를 설명합니다.

Source pathDocumentation/networking/dsa/lan9303.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

lan9303.rst:1-37

LAN9303 드라이버는 독립 포트에서는 MAC 학습을 끄고, 두 사용자 포트가 같은 브리지에 가입하면 하드웨어 학습·전달·STP·FDB/MDB를 켭니다. VLAN filtering과 VLAN별 FDB는 지원하지 않습니다.

LAN9303 운용 모드
두 독립 포트학습 없음같은 브리지하드웨어 학습·전달포트 이탈분리 모드 복귀

포트의 브리지 상태가 하드웨어 기능을 결정합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 ==============================
2 LAN9303 Ethernet switch driver
3 ==============================
4
5 The LAN9303 is a three port 10/100 Mbps ethernet switch with integrated phys for
6 the two external ethernet ports. The third port is an RMII/MII interface to a
7 host conduit network interface (e.g. fixed link).
8
9
10 Driver details
11 ==============
12
13 The driver is implemented as a DSA driver, see ``Documentation/networking/dsa/dsa.rst``.
14
15 See ``Documentation/devicetree/bindings/net/dsa/lan9303.txt`` for device tree
16 binding.
17
18 The LAN9303 can be managed both via MDIO and I2C, both supported by this driver.
19
20 At startup the driver configures the device to provide two separate network
21 interfaces (which is the default state of a DSA device). Due to HW limitations,
22 no HW MAC learning takes place in this mode.
23
24 When both user ports are joined to the same bridge, the normal HW MAC learning
25 is enabled. This means that unicast traffic is forwarded in HW. Broadcast and
26 multicast is flooded in HW. STP is also supported in this mode. The driver
27 support fdb/mdb operations as well, meaning IGMP snooping is supported.
28
29 If one of the user ports leave the bridge, the ports goes back to the initial
30 separated operation.
31
32
33 Driver limitations
34 ==================
35
36 - Support for VLAN filtering is not implemented
37 - The HW does not support VLAN-specific fdb entries
38

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

하드웨어 개요

1-9

LAN9303은 외부 이더넷 포트 두 개에 통합 PHY를 제공하는 3포트 10/100Mbps 이더넷 스위치입니다. 세 번째 포트는 고정 링크 등의 호스트 conduit 네트워크 인터페이스에 연결하는 RMII/MII 포트입니다.

==============================
LAN9303 Ethernet switch driver
==============================

The LAN9303 is a three port 10/100 Mbps ethernet switch with integrated phys for
the two external ethernet ports. The third port is an RMII/MII interface to a
host conduit network interface (e.g. fixed link).

드라이버 동작

10-31

드라이버는 `Documentation/networking/dsa/dsa.rst`의 DSA 모델로 구현되며 Device Tree 바인딩은 `Documentation/devicetree/bindings/net/dsa/lan9303.txt`에 정의됩니다. 하드웨어 관리는 MDIO와 I2C를 모두 지원합니다.

시작할 때 두 사용자 포트를 서로 분리된 네트워크 인터페이스로 구성합니다. 이는 DSA 장치의 기본 상태이며 하드웨어 제약 때문에 이 상태에서는 하드웨어 MAC 학습을 하지 않습니다.

두 사용자 포트가 같은 브리지에 들어가면 정상 하드웨어 MAC 학습을 켭니다. unicast는 하드웨어로 전달하고 broadcast와 multicast는 하드웨어로 flood하며 STP도 지원합니다. FDB/MDB 연산도 지원하므로 IGMP snooping을 사용할 수 있습니다. 사용자 포트 하나가 브리지를 떠나면 두 포트는 다시 초기 분리 상태로 돌아갑니다.

LAN9303 포트 상태
독립 사용자 포트MAC 학습 비활성두 포트가 같은 브리지에 가입MAC 학습·FDB/MDB·STP 활성한 포트가 이탈독립 사용자 포트

브리지 소속에 따라 학습과 하드웨어 전달 모드가 달라집니다.

Driver details
==============

The driver is implemented as a DSA driver, see ``Documentation/networking/dsa/dsa.rst``.

See ``Documentation/devicetree/bindings/net/dsa/lan9303.txt`` for device tree
binding.

The LAN9303 can be managed both via MDIO and I2C, both supported by this driver.

At startup the driver configures the device to provide two separate network
interfaces (which is the default state of a DSA device). Due to HW limitations,
no HW MAC learning takes place in this mode.

When both user ports are joined to the same bridge, the normal HW MAC learning
is enabled. This means that unicast traffic is forwarded in HW. Broadcast and
multicast is flooded in HW. STP is also supported in this mode. The driver
support fdb/mdb operations as well, meaning IGMP snooping is supported.

If one of the user ports leave the bridge, the ports goes back to the initial
separated operation.

드라이버 한계

32-37

VLAN filtering은 구현되어 있지 않으며 하드웨어는 VLAN별 FDB 항목을 지원하지 않습니다.


Driver limitations
==================

 - Support for VLAN filtering is not implemented
 - The HW does not support VLAN-specific fdb entries