Support multi-queue when using a provided TUN file descriptor
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, linux
- Ambito
- backend, networking
Direzione di ricerca
Start by reading the TUN initialization path that handles Options.FileDescriptor and the openQueue() check that depends on multiQueue; the issue does not name specific files or tests. Trace how Options.MultiQueue is applied when sing-tun opens the device itself and how externally provided descriptors are attached. Done means additional queues can be opened for a multi-queue interface supplied through a file descriptor, while unsupported cases are handled safely.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I'm implementing a TUN backend using Linux NetworkManager's VPN plugin API.
NetworkManager can create and configure a TUN interface with multi-queue enabled. The VPN plugin can then open /dev/net/tun and attach to the existing interface using TUNSETIFF, passing the resulting file descriptor to sing-tun via Options.FileDescriptor.
However, sing-tun currently only initializes multiQueue when it opens the TUN device itself. When using Options.FileDescriptor, the multiQueue field remains disabled, regardless of Options.MultiQueue. SoopenQueue() refuses to create additional queues, even when the underlying TUN interface supports multi-queue.
Expected change:
When Options.FileDescriptor and Options.MultiQueue are both set, sing-tun should support opening additional queues on the existing TUN interface.
I understand that the existed behavior is to prevent using Android system Tun with multi queue invalidly. But this usage should be rejected in sing-box platform interface.
Ideally, it may detect or validate whether the interface supports multi-queue rather than assuming that externally provided file descriptors are always single-queue.
This would allow sing-tun to work with multi-queue TUN interfaces managed by NetworkManager or other external components.
- Lingua principale
- Go
- Stelle
- 244
- Fork
- 260
- Merge medio
- 4g 21h
- PR unite (30g)
- 5
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SagerNet/sing-tun
-
auto_redirect: output_udp_icmp routes replies to inbound UDP into the TUNForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
-
很强!!!Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
-
Darwin: utun process UUID headers are parsed as IP payloadForse già presa @d3pre5s l’ha presa 44 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Tutte le issue di SagerNet/sing-tun
Issue simili
-
good first issue tools
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
Edwin-metcalf/MetCode#76 ·
I maintainer di solito rispondono entro 1 giorno
-
-diff's removed-name budget ignores the names the -ptr pass testedForse già presa @nova-loop l’ha presa oggi. Apertaarea: cli bug good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
TMHSDigital/subenum#495 ·
I maintainer di solito rispondono entro 1 giorno
-
bug effort:s impact:med raised-by:worker risk:low to:worker
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
medici-finance/assay#8120 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
factory:subtask
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
reportedBy/community
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openchoreo/openchoreo#5751 ·
I maintainer di solito rispondono entro 1 giorno