How to enable USB 3.0 transfer Rate for USB Gadget

I managed to make the USB mass storage (through USB gadget) to make my internal storage visible through Windows PC. However, I noticed the data transfer rate is averaging around 480 Mbps which I suspect it uses USB2.0 protocol. Is there any way to enable the USB 3.0 speed for the USB gadget?

can you confirm whether the usb port you use with the usb mass storage and usb interface of mass storage are both usb 3.0 or not.

To reach 3.0 speed, the usb port and the usb mass storage are both needed to be usb3.0, besides, the speed still related to the storage capacity, you can confirm the speed on the pc.

Hi,

I have tried exposing my thumb drive ( connected to USB 3.0 port) to windows machine, using the Type C port as a mass storage interface. I also tried exposing my SSD to. Both of it have the same transfer speed.

For context, im using this guide to create a mass storage for my machine Here