mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
pack packets into large buffers when GSO is available
This commit is contained in:
parent
628ba87727
commit
5b5ffa942b
16 changed files with 339 additions and 186 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
reflect "reflect"
|
||||
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
protocol "github.com/quic-go/quic-go/internal/protocol"
|
||||
)
|
||||
|
||||
// MockSender is a mock of Sender interface.
|
||||
|
@ -74,15 +75,15 @@ func (mr *MockSenderMockRecorder) Run() *gomock.Call {
|
|||
}
|
||||
|
||||
// Send mocks base method.
|
||||
func (m *MockSender) Send(arg0 *packetBuffer) {
|
||||
func (m *MockSender) Send(arg0 *packetBuffer, arg1 protocol.ByteCount) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "Send", arg0)
|
||||
m.ctrl.Call(m, "Send", arg0, arg1)
|
||||
}
|
||||
|
||||
// Send indicates an expected call of Send.
|
||||
func (mr *MockSenderMockRecorder) Send(arg0 interface{}) *gomock.Call {
|
||||
func (mr *MockSenderMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockSender)(nil).Send), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockSender)(nil).Send), arg0, arg1)
|
||||
}
|
||||
|
||||
// WouldBlock mocks base method.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue